@@ -36,12 +36,6 @@ struct ConsensusState {
3636}
3737
3838library StateLensIcs23MptLib {
39- uint256 public constant EVM_IBC_COMMITMENT_SLOT = 0 ;
40-
41- event CreateLensClient (
42- uint32 clientId , uint32 l1ClientId , uint32 l2ClientId , string l2ChainId
43- );
44-
4539 error ErrNotIBC ();
4640 error ErrTrustedConsensusStateNotFound ();
4741 error ErrClientFrozen ();
@@ -148,7 +142,7 @@ contract StateLensIcs23MptClient is
148142 clientStates[clientId] = clientState;
149143 consensusStates[clientId][clientState.l2LatestHeight] = consensusState;
150144
151- emit StateLensIcs23MptLib. CreateLensClient (
145+ emit CreateLensClient (
152146 clientId,
153147 clientState.l1ClientId,
154148 clientState.l2ClientId,
@@ -257,7 +251,7 @@ contract StateLensIcs23MptClient is
257251 }
258252 bytes32 storageRoot = consensusStates[clientId][height].storageRoot;
259253 bytes32 slot = keccak256 (
260- abi.encodePacked (path, StateLensIcs23MptLib.EVM_IBC_COMMITMENT_SLOT )
254+ abi.encodePacked (path, IBCStoreLib.IBC_UNION_EVM_COMMITMENT_SLOT )
261255 );
262256 (bool exists , bytes calldata provenValue ) = MPTVerifier.verifyTrieValue (
263257 proof, keccak256 (abi.encodePacked (slot)), storageRoot
@@ -278,7 +272,7 @@ contract StateLensIcs23MptClient is
278272 }
279273 bytes32 storageRoot = consensusStates[clientId][height].storageRoot;
280274 bytes32 slot = keccak256 (
281- abi.encodePacked (path, StateLensIcs23MptLib.EVM_IBC_COMMITMENT_SLOT )
275+ abi.encodePacked (path, IBCStoreLib.IBC_UNION_EVM_COMMITMENT_SLOT )
282276 );
283277 (bool exists ,) = MPTVerifier.verifyTrieValue (
284278 proof, keccak256 (abi.encodePacked (slot)), storageRoot
0 commit comments