Skip to content

Commit

Permalink
added ics4 callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
charleenfei committed Aug 27, 2021
1 parent 647e74e commit 830fb20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ func (k Keeper) SendPacket(
channelCap *capabilitytypes.Capability,
packet exported.PacketI,
) error {
// will this work this ics20? SendTransfer
// if channelKeeper === ics20 then sendTransfer, otherwise SendPacket
return k.channelKeeper.SendPacket(ctx, channelCap, packet)
}

Expand All @@ -26,5 +28,9 @@ func (k Keeper) WriteAcknowledgement(
packet exported.PacketI,
acknowledgement []byte,
) error {
// retrieve the forward relayer that was stored in `onRecvPacket`
// relayer = privateStore.get(forwardRelayerPath(packet))
// ack = constructIncentivizedAck(acknowledgment, relayer)
// ack_bytes marshal(ack)
return k.channelKeeper.WriteAcknowledgement(ctx, chanCap, packet, acknowledgement)
}
1 change: 1 addition & 0 deletions modules/apps/29-fee/keeper/ics4_callbacks_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package keeper_test

0 comments on commit 830fb20

Please sign in to comment.