@@ -251,7 +251,7 @@ func (k Keeper) EthCall(c context.Context, req *types.EthCallRequest) (*types.Ms
251251 }
252252
253253 msg := args .ToMessage (cfg .BaseFee , false , false )
254- txConfig := statedb .NewEmptyTxConfig (common . BytesToHash ( ctx . HeaderHash ()) )
254+ txConfig := statedb .NewEmptyTxConfig ()
255255
256256 // pass false to not commit StateDB
257257 res , err := k .ApplyMessageWithConfig (ctx , * msg , nil , false , cfg , txConfig , false )
@@ -324,7 +324,7 @@ func (k Keeper) EstimateGasInternal(c context.Context, req *types.EthCallRequest
324324 nonce := k .GetNonce (ctx , args .GetFrom ())
325325 args .Nonce = (* hexutil .Uint64 )(& nonce )
326326
327- txConfig := statedb .NewEmptyTxConfig (common . BytesToHash ( ctx . HeaderHash ()) )
327+ txConfig := statedb .NewEmptyTxConfig ()
328328
329329 if args .Gas == nil {
330330 args .Gas = new (hexutil.Uint64 )
@@ -488,7 +488,7 @@ func (k Keeper) TraceTx(c context.Context, req *types.QueryTraceTxRequest) (*typ
488488 }
489489
490490 signer := ethtypes .MakeSigner (types .GetEthChainConfig (), big .NewInt (ctx .BlockHeight ()), uint64 (ctx .BlockTime ().Unix ())) //#nosec G115 -- int overflow is not a concern here
491- txConfig := statedb .NewEmptyTxConfig (common . BytesToHash ( ctx . HeaderHash ()) )
491+ txConfig := statedb .NewEmptyTxConfig ()
492492
493493 // gas used at this point corresponds to GetProposerAddress & CalculateBaseFee
494494 // need to reset gas meter per transaction to be consistent with tx execution
@@ -582,7 +582,7 @@ func (k Keeper) TraceBlock(c context.Context, req *types.QueryTraceBlockRequest)
582582 txsLength := len (req .Txs )
583583 results := make ([]* types.TxTraceResult , 0 , txsLength )
584584
585- txConfig := statedb .NewEmptyTxConfig (common . BytesToHash ( ctx . HeaderHash ()) )
585+ txConfig := statedb .NewEmptyTxConfig ()
586586
587587 for i , tx := range req .Txs {
588588 result := types.TxTraceResult {}
@@ -662,7 +662,7 @@ func (k *Keeper) traceTx(
662662 }
663663
664664 tCtx := & tracers.Context {
665- BlockHash : txConfig . BlockHash ,
665+ BlockHash : common . BytesToHash ( ctx . HeaderHash ()) ,
666666 TxIndex : int (txConfig .TxIndex ), //#nosec G115 -- int overflow is not a concern here
667667 TxHash : txConfig .TxHash ,
668668 }
0 commit comments