1
0
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:
Onuwa Nnachi Isaac 2019-08-20 18:22:33 +01:00 committed by Andy Tudhope
parent 8cb5fababf
commit d0398a5c20

View File

@ -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)