Skip to content

Commit be8ecc1

Browse files
committed
fix test case
1 parent 94e36a8 commit be8ecc1

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

usecase/parser/icaauth/msg.go

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,9 @@ func ParseChainmainMsgSubmitTx(
7272

7373
var packetDataBytes []byte
7474
packetDataBytes, err := hex.DecodeString(packetDataHex)
75-
76-
var fungiblePacketData *ibc_model.FungibleTokenPacketData
7775
if err == nil {
78-
if err = json.Unmarshal(packetDataBytes, &fungiblePacketData); err != nil {
79-
parserParams.Logger.Warnf("error unmarshalling packet data hex")
80-
}
76+
packetData = string(packetDataBytes)
8177
}
82-
83-
var fungiblePacketDataBytes []byte
84-
fungiblePacketDataBytes, err = json.Marshal(fungiblePacketData)
85-
packetData = string(fungiblePacketDataBytes)
8678
}
8779
if sendPacketEvent.HasAttribute("packet_timeout_height") {
8880
packetTimeoutHeight = sendPacketEvent.MustGetAttributeByKey("packet_timeout_height")
@@ -250,17 +242,9 @@ func ParseMsgSubmitTx(
250242

251243
var packetDataBytes []byte
252244
packetDataBytes, err := hex.DecodeString(packetDataHex)
253-
254-
var fungiblePacketData *ibc_model.FungibleTokenPacketData
255245
if err == nil {
256-
if err = json.Unmarshal(packetDataBytes, &fungiblePacketData); err != nil {
257-
parserParams.Logger.Warnf("error unmarshalling packet data hex")
258-
}
246+
packetData = string(packetDataBytes)
259247
}
260-
261-
var fungiblePacketDataBytes []byte
262-
fungiblePacketDataBytes, err = json.Marshal(fungiblePacketData)
263-
packetData = string(fungiblePacketDataBytes)
264248
}
265249
if sendPacketEvent.HasAttribute("packet_timeout_height") {
266250
packetTimeoutHeight = sendPacketEvent.MustGetAttributeByKey("packet_timeout_height")

0 commit comments

Comments
 (0)