Skip to content

Commit

Permalink
imp: membership interface
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Jul 28, 2024
1 parent 83c9460 commit afdaf02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ICS26Router.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/ILightClient.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afdaf02

Please sign in to comment.