Skip to content

Commit

Permalink
fix(contracts): OZ-N03 Incorrect Function Visibility (#1140)
Browse files Browse the repository at this point in the history
  • Loading branch information
zimpha authored Mar 5, 2024
1 parent d0d4c38 commit e312634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/L1/rollup/ScrollChainCommitmentVerifier.sol
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ contract ScrollChainCommitmentVerifier {
require(IScrollChain(rollup).isBatchFinalized(batchIndex), "Batch not finalized");

bytes32 computedStateRoot;
(computedStateRoot, storageValue) = ZkTrieVerifier.verifyZkTrieProof(poseidon, account, storageKey, proof);
(computedStateRoot, storageValue) = verifyZkTrieProof(account, storageKey, proof);
bytes32 expectedStateRoot = IScrollChain(rollup).finalizedStateRoots(batchIndex);
require(computedStateRoot == expectedStateRoot, "Invalid inclusion proof");
}
Expand Down

0 comments on commit e312634

Please sign in to comment.