Skip to content

Commit

Permalink
Fixed when transaction is processed on synchronous algorithm and has …
Browse files Browse the repository at this point in the history
…post deliver tx hook
  • Loading branch information
maoueh committed Aug 9, 2024
1 parent 118555e commit 5b43a0b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion x/evm/tracers/firehose.go
Original file line number Diff line number Diff line change
Expand Up @@ -780,9 +780,15 @@ func (f *Firehose) OnSeiPostTxCosmosEvents(event seitracing.SeiPostTxCosmosEvent

firehoseInfo("post tx cosmos events on EVM transaction (tracer=%s, added_logs=%d, isolated=%t)", f.tracerID, len(event.AddedLogs), f.transactionIsolated)

transaction := f.transaction
var transaction *pbeth.TransactionTrace
if f.transactionIsolated {
transaction = f.transientTransaction
} else {
if len(f.block.TransactionTraces) == 0 {
f.panicInvalidState("block must have at least one transaction at this point", 1)
}

transaction = f.block.TransactionTraces[len(f.block.TransactionTraces)-1]
}

if transaction == nil {
Expand Down

0 comments on commit 5b43a0b

Please sign in to comment.