From afdaf02d5af2799b61da7524b7abe53581aab1c9 Mon Sep 17 00:00:00 2001 From: srdtrk Date: Mon, 29 Jul 2024 02:42:25 +0900 Subject: [PATCH] imp: membership interface --- src/ICS26Router.sol | 2 +- src/interfaces/ILightClient.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ICS26Router.sol b/src/ICS26Router.sol index 653de6b..9b2fb08 100644 --- a/src/ICS26Router.sol +++ b/src/ICS26Router.sol @@ -197,7 +197,7 @@ contract ICS26Router is IICS26Router, IBCStore, Ownable, IICS26RouterErrors, Ree value: bytes("") }); - uint32 counterpartyTimestamp = ics02Client.getClient(msg_.packet.sourceChannel).membership(nonMembershipMsg); + uint256 counterpartyTimestamp = ics02Client.getClient(msg_.packet.sourceChannel).membership(nonMembershipMsg); if (counterpartyTimestamp < msg_.packet.timeoutTimestamp) { revert IBCInvalidTimeoutTimestamp(msg_.packet.timeoutTimestamp, counterpartyTimestamp); } diff --git a/src/interfaces/ILightClient.sol b/src/interfaces/ILightClient.sol index d6069e9..9bd2ddf 100644 --- a/src/interfaces/ILightClient.sol +++ b/src/interfaces/ILightClient.sol @@ -15,7 +15,7 @@ interface ILightClient is ILightClientMsgs { /// @dev Notice that this message is not view, as it may update the client state for caching purposes. /// @param msg_ The membership message /// @return The unix timestamp of the verification height in the counterparty chain in seconds. - function membership(MsgMembership calldata msg_) external returns (uint32); + function membership(MsgMembership calldata msg_) external returns (uint256); /// @notice Misbehaviour handling, moves the light client to the frozen state if misbehaviour is detected /// @param misbehaviourMsg The misbehaviour message