1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-02-12 09:17:32 +00:00

Update changes

This commit is contained in:
Onuwa Nnachi Isaac 2019-09-04 17:01:14 +01:00 committed by Andy Tudhope
parent d0398a5c20
commit 0a1db006c5
2 changed files with 3 additions and 6 deletions

View File

@ -5,9 +5,8 @@ export const broadcastContractFn = (contractMethod, account) => {
.then(estimatedGas => { .then(estimatedGas => {
contractMethod contractMethod
.send({ from: account, gas: estimatedGas + 1000 }) .send({ from: account, gas: estimatedGas + 1000 })
.on('transactionHash', hash => {}) .on('transactionHash', hash => {
.on('receipt', receipt => { resolve(hash)
resolve(receipt.transactionHash)
}) })
.on('error', error => { .on('error', error => {
reject(error) reject(error)

View File

@ -80,9 +80,7 @@ export const checkTransactionStatusAction = (tx, message) => {
break break
case 2: case 2:
transacationStatus.setProgress(true) transacationStatus.setProgress(true)
setTimeout(() => {
dispatch(checkTransactionStatusAction(tx, message)) dispatch(checkTransactionStatusAction(tx, message))
}, 2000)
break break
} }