From fb77a6ec55437cef0d7dc89224faa9c0d2c08ad2 Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Thu, 12 May 2022 10:39:19 +0200 Subject: [PATCH] adjust wording Signed-off-by: Pascal Marco Caversaccio --- CHANGELOG.md | 2 +- contracts/utils/Strings.sol | 2 +- test/utils/Strings.test.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61de351b12f..b4307d20ef9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ * `Clones`: optimize clone creation ([#3329](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3329)) * `TimelockController`: Migrate `_call` to `_execute` and allow inheritance and overriding similar to `Governor`. ([#3317](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3317)) * `CrossChainEnabledPolygonChild`: replace the `require` statement with the custom error `NotCrossChainCall`. ([#3380](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3380)) - * `Strings`: add a new function `addressToHexString` that converts an `address` to its ASCII `string` hexadecimal representation with fixed length of 20 bytes. ([#3403](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3403)) + * `Strings`: add a new function `addressToHexString` that converts an `address` with fixed length of 20 bytes to its ASCII `string` hexadecimal representation. ([#3403](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3403)) ## 4.6.0 (2022-04-26) diff --git a/contracts/utils/Strings.sol b/contracts/utils/Strings.sol index 30143dbcd4c..f8ef96b89a1 100644 --- a/contracts/utils/Strings.sol +++ b/contracts/utils/Strings.sol @@ -67,7 +67,7 @@ library Strings { } /** - * @dev Converts an `address` to its ASCII `string` hexadecimal representation with fixed length of 20 bytes. + * @dev Converts an `address` with fixed length of 20 bytes to its ASCII `string` hexadecimal representation. */ function addressToHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH); diff --git a/test/utils/Strings.test.js b/test/utils/Strings.test.js index e4b259dbd3f..b4ccb0e36a7 100644 --- a/test/utils/Strings.test.js +++ b/test/utils/Strings.test.js @@ -57,7 +57,7 @@ contract('Strings', function (accounts) { }); }); - describe('from address - fixed 20 bytes hex format', function () { + describe('from address - hex format', function () { it('converts a random address', async function () { expect(web3.utils.toChecksumAddress(await this.strings.fromAddressHex(this.strings.address))) .to.equal(this.strings.address.toString());