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

LESSON 13: Error: cannot estimate gas; transaction may fail or may require manual gas limit #3491

Closed
santipu03 opened this issue Oct 25, 2022 · 5 comments
Labels

Comments

@santipu03
Copy link
Contributor

Lesson

Lesson 13

Could you please leave a link to the timestamp in the video where this error occurs? (You can right click a video and "copy video URL at current time")

No response

Operating System

Linux

Describe the bug

I forked the entire repo of the lesson 13, run yarn, filled the .env file with my info and tried to run the script in the goerli testnet. The result is this error:
Error: cannot estimate gas; transaction may fail or may require manual gas limit
Anyone here knows what's happening?
Thanks in advance for all the great content here.

@santipu03
Copy link
Contributor Author

Sorry, I closed it unintentionally

@santipu03 santipu03 reopened this Oct 25, 2022
@santipu03
Copy link
Contributor Author

The complete error is this:

Error: cannot estimate gas; transaction may fail or may require manual gas limit (error={"name":"ProviderError","code":3,"_isProviderError":true,"data":"0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000013200000000000000000000000000000000000000000000000000000000000000"}, method="estimateGas", transaction={"from":"0x41ED91e3Dbc508B92D38F69369EEB2139CBf9731","to":"0x4bd5643ac6f66a5237E18bfA7d47cF22f1c9F210","data":"0xe8eda9df000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d600000000000000000000000000000000000000000000000000470de4df82000000000000000000000000000041ed91e3dbc508b92d38f69369eeb2139cbf97310000000000000000000000000000000000000000000000000000000000000000","accessList":null}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.5.2)

@JamesMckenna
Copy link

JamesMckenna commented Oct 25, 2022

@santipu03

Typically a repos 'Issues' section is to report problems with the repo's code.
For this course, and bugs in your code, it is best to make a posting in the 'Discussions' section of this repo. Add a link to your github repo so community members can clone your project and debug locally. Also try to give a explanation of the problem you are encountering by including the stack trace, error message and the code where you think the error is being thrown from.

For this post, you didn't provide enough context for me to help you out.

@krakxn
Copy link
Contributor

krakxn commented Oct 26, 2022

As described above, this is not relevant here and must be posted in the discussions instead.

When you do, make sure to add steps to reproduce the problem or elaborate the issue at hand. Additionally, the link of the repo (pushed to GitHub).

Tag me there. I will look into it.

@krakxn
Copy link
Contributor

krakxn commented Oct 26, 2022

@alymurtazamemon This can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants