Commit 0044ad3e authored by d11e9's avatar d11e9

tidy

parent d965dde3
......@@ -313,14 +313,14 @@ UniversalDApp.prototype.runTx = function( data, args, cb) {
to: to,
data: data,
gas: 1000000
}
};
web3.eth.estimateGas( tx, function(err, resp){
tx.gas = resp;
if (!err) web3.eth.sendTransaction( tx, function(err, resp) {
cb( err, resp );
});
else cb( err, resp);
})
});
}
} else {
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment