-
Notifications
You must be signed in to change notification settings - Fork 5.1k
.Then() and await on .Send() never completing in VueJS + MetaMask #2640
Comments
Did you configure the Example: new Web3(provider, null, {transactionConfirmationBlocks: 1}); |
I am seeing the same issue in native NodeJS using only web3. Blockchain node: Local Parity PoA chain (parity version 2.3.9)
The Further info: I have tracing turned on on my dev node. After sending the transaction, the node is continually polled for the receipt, which it returns correctly. The polling continues and never stops repeating:
After downgrading to version 1.0.0-beta.37 (the previous version I was using), everything works as expected. Trying more versions now |
@devedse Thanks for figuring this out! The Edit: |
I'm not sure how to create a TransactionSigner that makes use of MetaMask. If it's not something like a oneliner I'll just wait for your fix :). |
@devedse You don't need a custom transaction signer if Metamask is signing them.:) |
Yeah I understand, but what do I need to pass to the new Web3ModuleOptions then? Pardon my lack of JavaScript/TypeScript knowledge. 😄 Edit: Or can you fool typescript into thinking it's all 'okay'?
|
I tested it and indeed providing the |
Description
I just recently upgraded to version
1.0.0-beta.51
and am now running into an issue where I can't seem to be able to wait for transactions to finish.My webpage makes use of Metamask as a provider:
Then I load the contract:
When I then do this:
The log message
done!!!
is never displayed. Even though metamask correctly pops up a message that the transaction succeeded.In the screenshow below the application that makes use of this can be seen. Previously once the transaction completed the JobsList would be marked as completed:

Expected behavior
Once a transaction succeeds the program should continue it's work after the await statement
Actual behavior
The await call never completes once a transaction completes.
Steps to reproduce the behavior
Use the code posted above.
Error Logs
It doesn't seem to fall into the catch statement either, so I don't have any error logging.
Gists
Versions
1.0.0-beta.51
[email protected], Node: v10.11.0
Latest chrome
Metamask Ropsten Network
The text was updated successfully, but these errors were encountered: