Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 431aa81

Browse files
committed
Debug - forgot to comment old code
1 parent 8ca0b72 commit 431aa81

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

packages/web3-core-method/src/index.js

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -771,42 +771,42 @@ Method.prototype.buildCall = function () {
771771
};
772772

773773
// 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+
// }
810810

811811
// Send the actual transaction
812812
if (isSendTx

0 commit comments

Comments
 (0)