@@ -1841,15 +1841,15 @@ func (s *PrivateDebugAPI) TraceTransaction(txHash common.Hash, logger *vm.LogCon
1841
1841
}
1842
1842
// Mutate the state if we haven't reached the tracing transaction yet
1843
1843
if uint64 (idx ) < txIndex {
1844
- vmenv := core .NewEnv (stateDb , s .config , s .eth .BlockChain (), msg , parent .Header (), vm.Config {})
1844
+ vmenv := core .NewEnv (stateDb , s .config , s .eth .BlockChain (), msg , block .Header (), vm.Config {})
1845
1845
_ , _ , err := core .ApplyMessage (vmenv , msg , new (core.GasPool ).AddGas (tx .Gas ()))
1846
1846
if err != nil {
1847
1847
return nil , fmt .Errorf ("mutation failed: %v" , err )
1848
1848
}
1849
1849
continue
1850
1850
}
1851
1851
// Otherwise trace the transaction and return
1852
- vmenv := core .NewEnv (stateDb , s .config , s .eth .BlockChain (), msg , parent .Header (), vm.Config {Debug : true , Logger : * logger })
1852
+ vmenv := core .NewEnv (stateDb , s .config , s .eth .BlockChain (), msg , block .Header (), vm.Config {Debug : true , Logger : * logger })
1853
1853
ret , gas , err := core .ApplyMessage (vmenv , msg , new (core.GasPool ).AddGas (tx .Gas ()))
1854
1854
if err != nil {
1855
1855
return nil , fmt .Errorf ("tracing failed: %v" , err )
0 commit comments