From f13655eda9d48ea5c617ab8c32d7b49a4103bb59 Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Thu, 12 May 2022 17:23:07 +0200 Subject: [PATCH] add comment on checksum Signed-off-by: Pascal Marco Caversaccio --- CHANGELOG.md | 2 +- contracts/utils/Strings.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b4307d20ef9..246c68a829a 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` with fixed length of 20 bytes to its ASCII `string` hexadecimal representation. ([#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 not checksummed 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 f8ef96b89a1..275c1acdd7b 100644 --- a/contracts/utils/Strings.sol +++ b/contracts/utils/Strings.sol @@ -67,7 +67,7 @@ library Strings { } /** - * @dev Converts an `address` with fixed length of 20 bytes to its ASCII `string` hexadecimal representation. + * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation. */ function addressToHexString(address addr) internal pure returns (string memory) { return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);