Skip to content

Commit

Permalink
Update LibTrieProof.t.sol
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaik committed Feb 13, 2024
1 parent 58895f9 commit 3b44376
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/protocol/test/libs/LibTrieProof.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ contract TestLibTrieProof is TaikoTest {
stateRoot, randAddress(), slot, hex"01", accountProof, storageProof
);

vm.expectRevert();
LibTrieProof.verifyMerkleProof(
stateRoot, address(0), slot, hex"01", accountProof, storageProof
);

bytes32 storageRoot = LibTrieProof.verifyMerkleProof(
stateRoot, addr, slot, hex"01", accountProof, storageProof
);
Expand Down

0 comments on commit 3b44376

Please sign in to comment.