pull/1/head
d11e9 9 years ago
parent d965dde3b7
commit 0044ad3e02
  1. 4
      libs/universal-dapp.js

@ -313,14 +313,14 @@ UniversalDApp.prototype.runTx = function( data, args, cb) {
to: to, to: to,
data: data, data: data,
gas: 1000000 gas: 1000000
} };
web3.eth.estimateGas( tx, function(err, resp){ web3.eth.estimateGas( tx, function(err, resp){
tx.gas = resp; tx.gas = resp;
if (!err) web3.eth.sendTransaction( tx, function(err, resp) { if (!err) web3.eth.sendTransaction( tx, function(err, resp) {
cb( err, resp ); cb( err, resp );
}); });
else cb( err, resp); else cb( err, resp);
}) });
} }
} else { } else {
try { try {

Loading…
Cancel
Save