Skip to content

Commit 5dabfe5

Browse files
committed
add callback
1 parent 5dfaf88 commit 5dabfe5

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package keeper
2+
3+
import (
4+
sdk "github.com/cosmos/cosmos-sdk/types"
5+
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
6+
"github.com/cosmos/ibc-go/modules/core/exported"
7+
)
8+
9+
// SendPacket is called by a module in order to send an IBC packet on a channel
10+
// end owned by the calling module to the corresponding module on the counterparty
11+
// chain.
12+
func (k Keeper) SendPacket(
13+
ctx sdk.Context,
14+
channelCap *capabilitytypes.Capability,
15+
packet exported.PacketI,
16+
) error {
17+
//todo
18+
return k.channelKeeper.SendPacket(ctx, channelCap, packet)
19+
}

modules/apps/transfer/module.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ func (am AppModule) OnChanOpenInit(
246246
transferVersion = appVersion
247247
}
248248

249-
if err := ValidateTransferChannelParams(ctx, am.keeper, order, portID, channelID, appVersion); err != nil {
249+
if err := ValidateTransferChannelParams(ctx, am.keeper, order, portID, channelID, transferVersion); err != nil {
250250
return err
251251
}
252252

0 commit comments

Comments
 (0)