Change byte[][] to byte[][2]

ltyu/sp1-lightclient-ism
Le Yu 3 weeks ago
parent 79b4f8cad7
commit 36a9d1fdcd
  1. 2
      solidity/contracts/isms/ccip-read/StorageProofIsm.sol
  2. 2
      solidity/test/isms/Sp1LightClientIsm.t.sol

@ -116,7 +116,7 @@ abstract contract StorageProofIsm is AbstractCcipReadIsm, OwnableUpgradeable {
bytes32 _dispatchedSlotKey
) public view returns (bytes memory) {
// Get the slot value as bytes
bytes[][] memory proofs = abi.decode(_proofs, (bytes[][]));
bytes[][2] memory proofs = abi.decode(_proofs, (bytes[][2]));
bytes[] memory accountProof = proofs[0];
bytes[] memory storageProof = proofs[1];

@ -100,7 +100,7 @@ contract SP1LightClientIsmTest is StateProofHelpersTest {
}
function _encodeProofs() internal view returns (bytes memory) {
return abi.encode(accountProof, storageProof);
return abi.encode([accountProof, storageProof]);
}
function testSP1LightClientIsm_setOffchainUrls_revertsWithNonOwner(

Loading…
Cancel
Save