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:
parent
d0398a5c20
commit
0a1db006c5
@ -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)
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user