diff --git a/lib/web3/function.js b/lib/web3/function.js index e9ad5d0..00099c4 100644 --- a/lib/web3/function.js +++ b/lib/web3/function.js @@ -121,8 +121,7 @@ SolidityFunction.prototype.sendTransaction = function () { var payload = this.toPayload(args); if (!callback) { - web3.eth.sendTransaction(payload); - return; + return web3.eth.sendTransaction(payload);; } web3.eth.sendTransaction(payload, callback);