From a83181a868fd2d0179eb588190cf7460236505a0 Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 17 Jun 2025 20:35:05 +0100 Subject: [PATCH 1/3] Fix AddressArray data natspec --- contracts/libraries/AddressArray.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/libraries/AddressArray.sol b/contracts/libraries/AddressArray.sol index d47d3a35..57ad871f 100644 --- a/contracts/libraries/AddressArray.sol +++ b/contracts/libraries/AddressArray.sol @@ -30,7 +30,7 @@ library AddressArray { uint256 internal constant _LENGTH_OFFSET = 160; /** - * @dev Struct containing the raw mapping used to store the addresses and the array length. + * @dev Internal data structure representing a packed array of addresses with embedded length info. */ struct Data { uint256[1 << 32] _raw; From e1fd62aea437713d605d2855c697b3028e39d60a Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 17 Jun 2025 20:35:32 +0100 Subject: [PATCH 2/3] Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eb323724..c8ea7a3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@1inch/solidity-utils", - "version": "6.6.0", + "version": "6.6.1", "main": "dist/src/index.js", "types": "dist/src/index.d.ts", "exports": { From d591c5d59c6e8c4633e765d3780c84662e1693e6 Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 17 Jun 2025 21:12:38 +0100 Subject: [PATCH 3/3] Patch natspecs --- contracts/libraries/AddressArray.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/libraries/AddressArray.sol b/contracts/libraries/AddressArray.sol index 57ad871f..b03946f1 100644 --- a/contracts/libraries/AddressArray.sol +++ b/contracts/libraries/AddressArray.sol @@ -4,7 +4,7 @@ pragma solidity ^0.8.0; /** * @title AddressArray - * @notice Implements a dynamic array of addresses using a mapping for storage efficiency, with the array length stored at index 0. + * @notice Implements a storage-efficient dynamic array of addresses, with the length encoded in the first storage slot. * @dev This library provides basic functionalities such as push, pop, set, and retrieval of addresses in a storage-efficient manner. */ library AddressArray { @@ -30,7 +30,7 @@ library AddressArray { uint256 internal constant _LENGTH_OFFSET = 160; /** - * @dev Internal data structure representing a packed array of addresses with embedded length info. + * @dev Internal address array where the first element encodes both the length and the first address value. */ struct Data { uint256[1 << 32] _raw;