From 0cbc3b9f7b17567282867c87b97647bb58edd1db Mon Sep 17 00:00:00 2001 From: cifer76 Date: Tue, 7 Mar 2023 17:10:15 +0300 Subject: [PATCH] update --- core/state_processor.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/state_processor.go b/core/state_processor.go index 30fafaa1ac..d10553cb55 100644 --- a/core/state_processor.go +++ b/core/state_processor.go @@ -88,6 +88,7 @@ func (p *StateProcessor) Process(block *types.Block, statedb *state.StateDB, cfg if err != nil { return nil, nil, 0, fmt.Errorf("could not apply tx %d [%v]: %w", i, tx.Hash().Hex(), err) } + statedb.SetTxContext(tx.Hash(), i) receipt, err := applyTransaction(msg, p.config, gp, statedb, blockNumber, blockHash, tx, usedGas, vmenv) if err != nil { return nil, nil, 0, fmt.Errorf("could not apply tx %d [%v]: %w", i, tx.Hash().Hex(), err)