1
0
mirror of https://github.com/dap-ps/discover.git synced 2025-02-07 06:54:49 +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 => {
contractMethod
.send({ from: account, gas: estimatedGas + 1000 })
.on('transactionHash', hash => {})
.on('receipt', receipt => {
resolve(receipt.transactionHash)
.on('transactionHash', hash => {
resolve(hash)
})
.on('error', error => {
reject(error)

View File

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