Skip to content

Commit f584468

Browse files
Vectorizedmdqst
andauthored
πŸ“ Fix type mismatch in abi.decode comparison (#1494)
Co-authored-by: Dmitry <[email protected]>
1 parent 88a63f7 commit f584468

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

β€Ždocs/utils/efficienthashlib.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ function eq(bytes memory a, bytes32 b)
544544
returns (bool result)
545545
```
546546

547-
Returns `abi.decode(a, (bytes32)) == a`.
547+
Returns `abi.decode(a, (bytes32)) == b`.
548548

549549
## Byte Slice Hashing Operations
550550

β€Žsrc/utils/EfficientHashLib.solβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ library EfficientHashLib {
754754
}
755755
}
756756

757-
/// @dev Returns `abi.decode(a, (bytes32)) == a`.
757+
/// @dev Returns `abi.decode(a, (bytes32)) == b`.
758758
function eq(bytes memory a, bytes32 b) internal pure returns (bool result) {
759759
/// @solidity memory-safe-assembly
760760
assembly {

0 commit comments

Comments
Β (0)