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