@@ -683,7 +683,7 @@ type CallArgs struct {
683
683
Data hexutil.Bytes `json:"data"`
684
684
}
685
685
686
- func (s * PublicBlockChainAPI ) doCall (ctx context.Context , args CallArgs , blockNr rpc.BlockNumber , vmCfg vm. Config , timeout time.Duration ) ([]byte , uint64 , bool , error ) {
686
+ func (s * PublicBlockChainAPI ) doCall (ctx context.Context , args CallArgs , blockNr rpc.BlockNumber , timeout time.Duration ) ([]byte , uint64 , bool , error ) {
687
687
defer func (start time.Time ) { log .Debug ("Executing EVM call finished" , "runtime" , time .Since (start )) }(time .Now ())
688
688
689
689
state , header , err := s .b .StateAndHeaderByNumber (ctx , blockNr )
@@ -724,7 +724,7 @@ func (s *PublicBlockChainAPI) doCall(ctx context.Context, args CallArgs, blockNr
724
724
defer cancel ()
725
725
726
726
// Get a new instance of the EVM.
727
- evm , vmError , err := s .b .GetEVM (ctx , msg , state , header , vmCfg )
727
+ evm , vmError , err := s .b .GetEVM (ctx , msg , state , header )
728
728
if err != nil {
729
729
return nil , 0 , false , err
730
730
}
@@ -748,7 +748,7 @@ func (s *PublicBlockChainAPI) doCall(ctx context.Context, args CallArgs, blockNr
748
748
// Call executes the given transaction on the state for the given block number.
749
749
// It doesn't make and changes in the state/blockchain and is useful to execute and retrieve values.
750
750
func (s * PublicBlockChainAPI ) Call (ctx context.Context , args CallArgs , blockNr rpc.BlockNumber ) (hexutil.Bytes , error ) {
751
- result , _ , _ , err := s .doCall (ctx , args , blockNr , vm. Config {}, 5 * time .Second )
751
+ result , _ , _ , err := s .doCall (ctx , args , blockNr , 5 * time .Second )
752
752
return (hexutil .Bytes )(result ), err
753
753
}
754
754
@@ -777,7 +777,7 @@ func (s *PublicBlockChainAPI) EstimateGas(ctx context.Context, args CallArgs) (h
777
777
executable := func (gas uint64 ) bool {
778
778
args .Gas = hexutil .Uint64 (gas )
779
779
780
- _ , _ , failed , err := s .doCall (ctx , args , rpc .PendingBlockNumber , vm. Config {}, 0 )
780
+ _ , _ , failed , err := s .doCall (ctx , args , rpc .PendingBlockNumber , 0 )
781
781
if err != nil || failed {
782
782
return false
783
783
}
0 commit comments