smartcontractkit / full-blockchain-solidity-course-js

Learn Blockchain, Solidity, and Full Stack Web3 Development with Javascript
12.25k stars 2.94k forks source link

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

Closed santipu03 closed 1 year ago

santipu03 commented 1 year ago

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 commented 1 year ago

Sorry, I closed it unintentionally

santipu03 commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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 commented 1 year ago

@alymurtazamemon This can be closed.