@@ -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