Skip to content
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

Remove hardcoded gas limits #115

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented Feb 10, 2020

Web3 providers should be able to handle gas estimations on their own. Were we running into any problems with not setting a hardcoded amount?

@vercel
Copy link

vercel bot commented Feb 10, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/aragon/court-dashboard/qj8je5iyk
✅ Preview: https://court-dashboard-git-remove-hardcoded-gaslimits.aragon.now.sh

@fabriziovigevani
Copy link
Contributor

Yes, if we didn't set a gasLimit, the provider never prompts you to sign and we would get

data:
message: "execution error: revert"
code: -32000

in the console without specific reason.

@sohkai
Copy link
Contributor Author

sohkai commented Feb 10, 2020

This is definitely worrying; will look into it. Maybe it's something ethers related but I can't imagine it.

For example, we don't use hardcoded gas limits in the client or CLI except in exceptional cases.

@sohkai sohkai marked this pull request as draft May 15, 2020 18:45
@sohkai sohkai changed the base branch from development to master July 3, 2020 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants