diff --git a/solidity/contracts/isms/ccip-read/StorageProofIsm.sol b/solidity/contracts/isms/ccip-read/StorageProofIsm.sol index c6a68d367..15c6ab16d 100644 --- a/solidity/contracts/isms/ccip-read/StorageProofIsm.sol +++ b/solidity/contracts/isms/ccip-read/StorageProofIsm.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]; diff --git a/solidity/test/isms/Sp1LightClientIsm.t.sol b/solidity/test/isms/Sp1LightClientIsm.t.sol index 51da212f4..2c9ae04b6 100644 --- a/solidity/test/isms/Sp1LightClientIsm.t.sol +++ b/solidity/test/isms/Sp1LightClientIsm.t.sol @@ -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(