mirror of
https://github.com/dap-ps/discover.git
synced 2025-01-31 03:26:13 +00:00
Fix confirmation downvote issue
This commit is contained in:
parent
8cb5fababf
commit
d0398a5c20
@ -5,8 +5,9 @@ export const broadcastContractFn = (contractMethod, account) => {
|
||||
.then(estimatedGas => {
|
||||
contractMethod
|
||||
.send({ from: account, gas: estimatedGas + 1000 })
|
||||
.on('transactionHash', hash => {
|
||||
resolve(hash)
|
||||
.on('transactionHash', hash => {})
|
||||
.on('receipt', receipt => {
|
||||
resolve(receipt.transactionHash)
|
||||
})
|
||||
.on('error', error => {
|
||||
reject(error)
|
||||
|
Loading…
x
Reference in New Issue
Block a user