@@ -199,7 +199,7 @@ func (api *PrivateDebugAPI) traceChain(ctx context.Context, start, end *types.Bl
199199 balacne = value
200200 }
201201 }
202- msg , _ := tx .AsMessage (signer , balacne )
202+ msg , _ := tx .AsMessage (signer , balacne , task . block . Number () )
203203 vmctx := core .NewEVMContext (msg , task .block .Header (), api .eth .blockchain , nil )
204204
205205 res , err := api .traceTx (ctx , msg , vmctx , task .statedb , config )
@@ -438,7 +438,7 @@ func (api *PrivateDebugAPI) traceBlock(ctx context.Context, block *types.Block,
438438 balacne = value
439439 }
440440 }
441- msg , _ := txs [task .index ].AsMessage (signer , balacne )
441+ msg , _ := txs [task .index ].AsMessage (signer , balacne , block . Number () )
442442 vmctx := core .NewEVMContext (msg , block .Header (), api .eth .blockchain , nil )
443443
444444 res , err := api .traceTx (ctx , msg , vmctx , task .statedb , config )
@@ -463,7 +463,7 @@ func (api *PrivateDebugAPI) traceBlock(ctx context.Context, block *types.Block,
463463 }
464464 }
465465 // Generate the next state snapshot fast without tracing
466- msg , _ := tx .AsMessage (signer , balacne )
466+ msg , _ := tx .AsMessage (signer , balacne , block . Number () )
467467 vmctx := core .NewEVMContext (msg , block .Header (), api .eth .blockchain , nil )
468468
469469 vmenv := vm .NewEVM (vmctx , statedb , api .config , vm.Config {})
@@ -660,7 +660,7 @@ func (api *PrivateDebugAPI) computeTxEnv(blockHash common.Hash, txIndex int, ree
660660 }
661661 }
662662 // Assemble the transaction call message and return if the requested offset
663- msg , _ := tx .AsMessage (signer , balacne )
663+ msg , _ := tx .AsMessage (signer , balacne , block . Number () )
664664 context := core .NewEVMContext (msg , block .Header (), api .eth .blockchain , nil )
665665 if idx == txIndex {
666666 return msg , context , statedb , nil
0 commit comments