@@ -683,7 +683,7 @@ type CallArgs struct {
683683 Data hexutil.Bytes `json:"data"`
684684}
685685
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 ) {
687687 defer func (start time.Time ) { log .Debug ("Executing EVM call finished" , "runtime" , time .Since (start )) }(time .Now ())
688688
689689 state , header , err := s .b .StateAndHeaderByNumber (ctx , blockNr )
@@ -724,7 +724,7 @@ func (s *PublicBlockChainAPI) doCall(ctx context.Context, args CallArgs, blockNr
724724 defer cancel ()
725725
726726 // 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 )
728728 if err != nil {
729729 return nil , 0 , false , err
730730 }
@@ -748,7 +748,7 @@ func (s *PublicBlockChainAPI) doCall(ctx context.Context, args CallArgs, blockNr
748748// Call executes the given transaction on the state for the given block number.
749749// It doesn't make and changes in the state/blockchain and is useful to execute and retrieve values.
750750func (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 )
752752 return (hexutil .Bytes )(result ), err
753753}
754754
@@ -777,7 +777,7 @@ func (s *PublicBlockChainAPI) EstimateGas(ctx context.Context, args CallArgs) (h
777777 executable := func (gas uint64 ) bool {
778778 args .Gas = hexutil .Uint64 (gas )
779779
780- _ , _ , failed , err := s .doCall (ctx , args , rpc .PendingBlockNumber , vm. Config {}, 0 )
780+ _ , _ , failed , err := s .doCall (ctx , args , rpc .PendingBlockNumber , 0 )
781781 if err != nil || failed {
782782 return false
783783 }
0 commit comments