-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALERT: Transaction Error. Exception thrown in contract code. #123
Comments
Update: When I say "used to work and was able to confirm metadata" that was more than a year ago.. So it might be related to Metamask changes.. Also since these daps use legacy window.web3 API, installed additional Metamask extension according to this doc: That didn't help. Could it be related to Gas limit? Here is a snippet of the conctract.js
|
@maratP Could you please first try to make The Does it work through Blockscout? |
You get this only in the local private network or both in local and production (Core/Sokol)?
Yes. Please, try to set larger gas limit in MetaMask when sending transaction. Also, it's worth to try to set gas price to 20 gwei.
The dapps don't use window.web3 anymore. The main code uses poa-dapps-validators/src/utils/getWeb3.js Lines 49 to 56 in 74ad1ff
But it still supports legacy MetaMask with |
If the error still persists with MetaMask (after trying larger gasLimit and gasPrice), please attach here the screenshot of the alert. |
Thank you! I will try to set larger gas limit in MetaMask and let you know. P.S. Thanks again |
same happening to me |
Frontend (on our private network) works for both dapps (validators and voting), but when we try to submit transactions (to finalize metadata or create new ballot for voting), we get this error in Metamask:
ALERT: Transaction Error. Exception thrown in contract code.
P.S.
It used to work and we were able to set metadata for validator and also confirm it. Now, we can't finalize it and submit any transaction
Is is related to gas limit? Metamask changes? How do we fix or debug it? Also, what additional information do you need?
The text was updated successfully, but these errors were encountered: