@@ -771,42 +771,42 @@ Method.prototype.buildCall = function () {
771
771
} ;
772
772
773
773
// Send the actual transaction
774
- if ( isSendTx
775
- && ! ! payload . params [ 0 ]
776
- && typeof payload . params [ 0 ] === 'object'
777
- && typeof payload . params [ 0 ] . gasPrice === 'undefined'
778
- ) {
779
-
780
- var getGasPrice = ( new Method ( {
781
- name : 'getGasPrice' ,
782
- call : 'eth_gasPrice' ,
783
- params : 0
784
- } ) ) . createFunction ( method . requestManager ) ;
785
-
786
- getGasPrice ( function ( err , gasPrice ) {
787
-
788
- if ( gasPrice ) {
789
- payload . params [ 0 ] . gasPrice = gasPrice ;
790
- }
791
-
792
- if ( isSendTx ) {
793
- setTimeout ( ( ) => {
794
- defer . eventEmitter . emit ( 'sending' , payload ) ;
795
- } , 0 ) ;
796
- }
797
-
798
- sendRequest ( payload , method ) ;
799
- } ) ;
800
-
801
- } else {
802
- if ( isSendTx ) {
803
- setTimeout ( ( ) => {
804
- defer . eventEmitter . emit ( 'sending' , payload ) ;
805
- } , 0 ) ;
806
- }
807
-
808
- sendRequest ( payload , method ) ;
809
- }
774
+ // if (isSendTx
775
+ // && !!payload.params[0]
776
+ // && typeof payload.params[0] === 'object'
777
+ // && typeof payload.params[0].gasPrice === 'undefined'
778
+ // ) {
779
+
780
+ // var getGasPrice = (new Method({
781
+ // name: 'getGasPrice',
782
+ // call: 'eth_gasPrice',
783
+ // params: 0
784
+ // })).createFunction(method.requestManager);
785
+
786
+ // getGasPrice(function (err, gasPrice) {
787
+
788
+ // if (gasPrice) {
789
+ // payload.params[0].gasPrice = gasPrice;
790
+ // }
791
+
792
+ // if (isSendTx) {
793
+ // setTimeout(() => {
794
+ // defer.eventEmitter.emit('sending', payload);
795
+ // }, 0);
796
+ // }
797
+
798
+ // sendRequest(payload, method);
799
+ // });
800
+
801
+ // } else {
802
+ // if (isSendTx) {
803
+ // setTimeout(() => {
804
+ // defer.eventEmitter.emit('sending', payload);
805
+ // }, 0);
806
+ // }
807
+
808
+ // sendRequest(payload, method);
809
+ // }
810
810
811
811
// Send the actual transaction
812
812
if ( isSendTx
0 commit comments