From 4738fdbb5b980feb7b429c5ad7bee027b705d8bf Mon Sep 17 00:00:00 2001 From: maskpp Date: Tue, 6 May 2025 00:52:59 +0800 Subject: [PATCH] return context in normal condition --- eth/state_accessor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/state_accessor.go b/eth/state_accessor.go index 99ed28d96a..306c1e7c48 100644 --- a/eth/state_accessor.go +++ b/eth/state_accessor.go @@ -245,7 +245,7 @@ func (eth *Ethereum) stateAtTransaction(ctx context.Context, block *types.Block, core.ProcessParentBlockHash(block.ParentHash(), evm) } if txIndex == 0 && len(block.Transactions()) == 0 { - return nil, vm.BlockContext{}, statedb, release, nil + return nil, context, statedb, release, nil } // Recompute transactions up to the target index. signer := types.MakeSigner(eth.blockchain.Config(), block.Number(), block.Time())