Skip to content

Commit

Permalink
use variable
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed Dec 11, 2024
1 parent 0c8e6eb commit 80da5b1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/account/utils/draft-ERC7579Utils.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -320,10 +320,11 @@ contract ERC7579UtilsTest is Test {

// this is invalid: the bytes field of the first element of the array points out of bounds
// but we allow it past initial validation, because solidity will validate later when the bytes field is accessed
this.callDecodeBatch(abi.encode(32, 1, 0, 0, 96));
this.callDecodeBatchAndGetFirst(abi.encode(32, 1, 0, 0, 96));
bytes memory invalidDeeply = abi.encode(32, 1, 0, 0, 96);
this.callDecodeBatch(invalidDeeply);
this.callDecodeBatchAndGetFirst(invalidDeeply);
vm.expectRevert();
this.callDecodeBatchAndGetFirstBytes(abi.encode(32, 1, 0, 0, 96));
this.callDecodeBatchAndGetFirstBytes(invalidDeeply);
}

function callDecodeBatch(bytes calldata executionCalldata) public pure {
Expand Down

0 comments on commit 80da5b1

Please sign in to comment.