mirror of https://github.com/status-im/web3.js.git
Merge pull request #222 from jesuscript/master
sync sendTransaction returning tx address
This commit is contained in:
commit
ca58837248
|
@ -121,8 +121,7 @@ SolidityFunction.prototype.sendTransaction = function () {
|
||||||
var payload = this.toPayload(args);
|
var payload = this.toPayload(args);
|
||||||
|
|
||||||
if (!callback) {
|
if (!callback) {
|
||||||
web3.eth.sendTransaction(payload);
|
return web3.eth.sendTransaction(payload);;
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
web3.eth.sendTransaction(payload, callback);
|
web3.eth.sendTransaction(payload, callback);
|
||||||
|
|
Loading…
Reference in New Issue