Skip to content

Commit

Permalink
attach memo in transfer-tx
Browse files Browse the repository at this point in the history
  • Loading branch information
antstalepresh authored and codehans committed Jul 17, 2024
1 parent 690a0de commit b2ae775
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x/cw-ica/wasm/interface_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ type Transfer struct {
Amount wasmvmtypes.Coin `json:"amount"`
Timeout wasmvmtypes.IBCTimeout `json:"timeout"`
Callback []byte `json:"callback"`
Memo string `json:"memo"`
}

func register(ctx sdk.Context, contractAddr sdk.AccAddress, register *Register, cwicak cwicakeeper.Keeper, ik icacontrollerkeeper.Keeper) ([]sdk.Event, [][]byte, error) {
Expand Down Expand Up @@ -208,6 +209,7 @@ func PerformTransfer(f ibctransferkeeper.Keeper, cwicak cwicakeeper.Keeper, ctx
Receiver: transferTx.ToAddress,
TimeoutHeight: wasmkeeper.ConvertWasmIBCTimeoutHeightToCosmosHeight(transferTx.Timeout.Block),
TimeoutTimestamp: transferTx.Timeout.Timestamp,
Memo: transferTx.Memo,
}

res, err := f.Transfer(sdk.WrapSDKContext(ctx), msg)
Expand Down

0 comments on commit b2ae775

Please sign in to comment.