From 32f27da3e4e57558cacad28ed633c973604c21f1 Mon Sep 17 00:00:00 2001 From: srdtrk Date: Wed, 24 Jul 2024 19:58:33 +0800 Subject: [PATCH] feat: implemented recv_packet --- src/ICS26Router.sol | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ICS26Router.sol b/src/ICS26Router.sol index 0b4e2d5c..379b9c7f 100644 --- a/src/ICS26Router.sol +++ b/src/ICS26Router.sol @@ -92,7 +92,6 @@ contract ICS26Router is IICS26Router, IBCStore, Ownable, IICS26RouterErrors, Ree /// @notice Receives a packet /// @param msg_ The message for receiving packets function recvPacket(MsgRecvPacket calldata msg_) external nonReentrant { - // TODO: implement IIBCApp app = apps[msg_.packet.destPort]; string memory counterpartyId = ics02Client.getCounterparty(msg_.packet.destChannel).clientId; @@ -111,10 +110,7 @@ contract ICS26Router is IICS26Router, IBCStore, Ownable, IICS26RouterErrors, Ree kvPair: ILightClientMsgs.KVPair({ path: commitmentPath, value: abi.encodePacked(commitmentBz) }) }); - uint32 proofTimestamp = ics02Client.getClient(msg_.packet.destChannel).verifyMembership(membershipMsg); - if (msg_.packet.timeoutTimestamp <= proofTimestamp) { - revert IBCInvalidTimeoutTimestamp(proofTimestamp, msg_.packet.timeoutTimestamp); - } + ics02Client.getClient(msg_.packet.destChannel).verifyMembership(membershipMsg); if (msg_.packet.timeoutTimestamp <= block.timestamp) { revert IBCInvalidTimeoutTimestamp(msg_.packet.timeoutTimestamp, block.timestamp); }