From 1f1e23bb9642a3087cf44e7612527c0b8bc0ae23 Mon Sep 17 00:00:00 2001 From: skosito Date: Wed, 2 Oct 2024 18:44:02 +0200 Subject: [PATCH] remove redundant error in parsing synthetic txs --- rpc/backend/blocks.go | 1 + rpc/types/events.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rpc/backend/blocks.go b/rpc/backend/blocks.go index 6607fcbc07..a91118168a 100644 --- a/rpc/backend/blocks.go +++ b/rpc/backend/blocks.go @@ -339,6 +339,7 @@ func (b *Backend) parseSyntheticTxFromBlockResults( return nil, nil } if additional == nil || res == nil { + b.logger.Debug("synthetic ethereum tx not found in msgs: block %d, index %d", block.Height, i) return nil, nil } return b.parseSyntethicTxFromAdditionalFields(additional), additional diff --git a/rpc/types/events.go b/rpc/types/events.go index 886b0e6a87..3026d13158 100644 --- a/rpc/types/events.go +++ b/rpc/types/events.go @@ -271,7 +271,7 @@ func ParseTxBlockResult( } if len(txs.Txs) == 0 { - return nil, nil, fmt.Errorf("ethereum tx not found in msgs: block %d, index %d", height, txIndex) + return nil, nil, nil } parsedTx := txs.Txs[0] if parsedTx.Type == CosmosEVMTxType {