From 58895f99f1bca2d8f3698dacece3486acac5e58d Mon Sep 17 00:00:00 2001 From: Daniel Wang Date: Wed, 14 Feb 2024 00:30:08 +0800 Subject: [PATCH] Update LibTrieProof.t.sol --- packages/protocol/test/libs/LibTrieProof.t.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/protocol/test/libs/LibTrieProof.t.sol b/packages/protocol/test/libs/LibTrieProof.t.sol index e0e7f13e62f..0b8fd448a10 100644 --- a/packages/protocol/test/libs/LibTrieProof.t.sol +++ b/packages/protocol/test/libs/LibTrieProof.t.sol @@ -49,6 +49,11 @@ contract TestLibTrieProof is TaikoTest { storageProof[0] = hex"e3a1209749684f52b5c0717a7ca78127fb56043d637d81763c04e9d30ba4d4746d56e901"; + vm.expectRevert(); + LibTrieProof.verifyMerkleProof( + stateRoot, randAddress(), slot, hex"01", accountProof, storageProof + ); + bytes32 storageRoot = LibTrieProof.verifyMerkleProof( stateRoot, addr, slot, hex"01", accountProof, storageProof );