Commit 23d216fd authored by yann300's avatar yann300

fix runTx

parent 20d8b428
...@@ -669,13 +669,14 @@ UniversalDApp.prototype.clickContractAt = function (self, $output, contract) { ...@@ -669,13 +669,14 @@ UniversalDApp.prototype.clickContractAt = function (self, $output, contract) {
} }
function tryTillResponse (web3, txhash, done) { function tryTillResponse (web3, txhash, done) {
web3.eth.getTransactionReceipt(txhash, function (err, address) { web3.eth.getTransactionReceipt(txhash, function (err, result) {
if (!err && !address) { if (!err && !result) {
// Try again with a bit of delay // Try again with a bit of delay
setTimeout(function () { tryTillResponse(web3, txhash, done) }, 500) setTimeout(function () { tryTillResponse(web3, txhash, done) }, 500)
} else { } else {
done(err, { done(err, {
result: address result: result,
transactionHash: result.transactionHash
}) })
} }
}) })
......
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