From 01ec2f09538dd90e8c1981a4d786bf27de4f966e Mon Sep 17 00:00:00 2001 From: vincentysc Date: Wed, 4 Dec 2024 10:48:05 +0800 Subject: [PATCH] fix lint --- usecase/parser/msg.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usecase/parser/msg.go b/usecase/parser/msg.go index 579ff19b..30425ef7 100644 --- a/usecase/parser/msg.go +++ b/usecase/parser/msg.go @@ -2368,7 +2368,8 @@ func ParseMsgEthereumTx( log := events.ParsedEventToTxsResultLog() parserParams.TxsResult.Log = log - rawTxData, err := hex.DecodeString(rawMsg.Raw[2:]) // Remove hex prefix "0x..." + var rawTxData []byte + rawTxData, err = hex.DecodeString(rawMsg.Raw[2:]) // Remove hex prefix "0x..." if err != nil { panic("error decoding raw tx data") }