From 36a9d1fdcd41b3a13c5576d1f456c8d45f4856f4 Mon Sep 17 00:00:00 2001 From: Le Yu <6251863+ltyu@users.noreply.github.com> Date: Sat, 2 Nov 2024 12:10:16 -0400 Subject: [PATCH] Change byte[][] to byte[][2] --- solidity/contracts/isms/ccip-read/StorageProofIsm.sol | 2 +- solidity/test/isms/Sp1LightClientIsm.t.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(