Skip to content

Commit

Permalink
fix: removed 'KVPair' usage
Browse files Browse the repository at this point in the history
  • Loading branch information
srdtrk committed Jul 28, 2024
1 parent 33bcb2e commit 83c9460
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ICS26Router.sol
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ contract ICS26Router is IICS26Router, IBCStore, Ownable, IICS26RouterErrors, Ree
ILightClientMsgs.MsgMembership memory membershipMsg = ILightClientMsgs.MsgMembership({
proof: msg_.proofCommitment,
proofHeight: msg_.proofHeight,
kvPair: ILightClientMsgs.KVPair({ path: commitmentPath, value: abi.encodePacked(commitmentBz) })
path: commitmentPath,
value: abi.encodePacked(commitmentBz)
});

ics02Client.getClient(msg_.packet.destChannel).membership(membershipMsg);
Expand Down Expand Up @@ -153,7 +154,8 @@ contract ICS26Router is IICS26Router, IBCStore, Ownable, IICS26RouterErrors, Ree
ILightClientMsgs.MsgMembership memory membershipMsg = ILightClientMsgs.MsgMembership({
proof: msg_.proofAcked,
proofHeight: msg_.proofHeight,
kvPair: ILightClientMsgs.KVPair({ path: commitmentPath, value: abi.encodePacked(commitmentBz) })
path: commitmentPath,
value: abi.encodePacked(commitmentBz)
});

ics02Client.getClient(msg_.packet.sourceChannel).membership(membershipMsg);
Expand Down Expand Up @@ -191,7 +193,8 @@ contract ICS26Router is IICS26Router, IBCStore, Ownable, IICS26RouterErrors, Ree
ILightClientMsgs.MsgMembership memory nonMembershipMsg = ILightClientMsgs.MsgMembership({
proof: msg_.proofTimeout,
proofHeight: msg_.proofHeight,
kvPair: ILightClientMsgs.KVPair({ path: receiptPath, value: bytes("") })
path: receiptPath,
value: bytes("")
});

uint32 counterpartyTimestamp = ics02Client.getClient(msg_.packet.sourceChannel).membership(nonMembershipMsg);
Expand Down

0 comments on commit 83c9460

Please sign in to comment.