Skip to content

Commit

Permalink
Merge branch 'develop' into GH2913/add-error-field-to-cctx
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco de Borja Aranda Castillejo authored Oct 3, 2024
2 parents 4d7b1aa + 1ed1015 commit 854da0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions rpc/backend/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion rpc/types/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 854da0d

Please sign in to comment.