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 11, 2024
1 parent e2f4bc2 commit 2c2dbfb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/protocol/test/libs/LibTrieProof.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity 0.8.24;
import "../TaikoTest.sol";
import "../../contracts/libs/LibTrieProof.sol";

contract TestVerifyFullMerkleProof is TaikoTest {
contract TestLibTrieProof is TaikoTest {
function test_verifyFullMerkleProof() public {
// Not needed for now, but leave it as is.
//uint64 chainId = 11_155_111; // Created the proofs on a deployed Sepolia
Expand Down Expand Up @@ -52,12 +52,14 @@ contract TestVerifyFullMerkleProof is TaikoTest {
bytes memory merkleProof = abi.encode(accountProof, storageProof);

vm.startPrank(Alice);
LibTrieProof.verifyFullMerkleProof(
bool verified = LibTrieProof.verifyFullMerkleProof(
worldStateRoot,
contractWhichStoresValue1AtSlot,
slotStoredAtTheApp,
hex"01",
merkleProof
);

assertEq(verified, true);
}
}

0 comments on commit 2c2dbfb

Please sign in to comment.