Update draft-ERC7579Utils.sol

pull/5400/head
Hadrien Croubois 1 month ago committed by GitHub
parent 381c5cf6fb
commit 23b630c2ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      contracts/account/utils/draft-ERC7579Utils.sol

@ -234,7 +234,7 @@ library ERC7579Utils {
uint256 itemEnd;
uint256 itemCalldataEnd;
assembly ("memory-safe") {
itemOffset := add(item, 0x60)
itemEnd := add(item, 0x60)
itemCalldataEnd := add(itemCalldata.offset, itemCalldata.length)
}
if (itemEnd > bound || itemCalldataEnd > bound) revert ERC7579DecodingError();

Loading…
Cancel
Save