File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change 1
1
package wasm
2
2
3
3
import (
4
- "encoding/json"
5
4
"math"
6
- "slices"
7
5
8
6
wasmvmtypes "github.com/CosmWasm/wasmvm/v3/types"
9
7
transfertypes "github.com/cosmos/ibc-go/v10/modules/apps/transfer/types"
@@ -418,14 +416,11 @@ func (i IBCHandler) IBCReceivePacketCallback(
418
416
419
417
var transfer * wasmvmtypes.IBCTransferCallback
420
418
421
- var parsedAck channeltypes.Acknowledgement_Result
422
- err = json .Unmarshal (ack .Acknowledgement (), & parsedAck )
423
-
424
419
// detect successful IBC transfer, meaning:
425
420
// 1. it was sent to the transfer module
426
421
// 2. the acknowledgement was successful
427
422
if packet .GetDestPort () == i .transferKeeper .GetPort (cachedCtx ) &&
428
- ack .Success () && err == nil && slices . Equal ( parsedAck . Result , [] byte { 1 }) {
423
+ ack .Success () && err == nil {
429
424
430
425
transferData , err := transfertypes .UnmarshalPacketData (packet .GetData (), version , "" )
431
426
if err != nil {
You can’t perform that action at this time.
0 commit comments