Lesson 5 -> Error: cannot estimate gas; transaction may fail or may require manual gas limit when deployed to Goerli Testnet #4433
Replies: 4 comments 1 reply
-
You're using a rpc url for mainnet, get a rpc for goerli. |
Beta Was this translation helpful? Give feedback.
-
Actually, that was Goerli RPC URL I got from alchemy. But thanks :) I
decided to to change to Infura instead of alchemy and that worked.
Again thank you so much for the answer.
…On Sun, Jan 8, 2023, 6:43 AM pacelliv ***@***.***> wrote:
You're using a rpc url for mainnet, get a rpc for goerli.
—
Reply to this email directly, view it on GitHub
<#4433 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADSAF4HRYW57QHOIBVHNZNLWRH5QLANCNFSM6AAAAAATUEEJJY>
.
You are receiving this because you authored the thread.Message ID:
<smartcontractkit/full-blockchain-solidity-course-js/repo-discussions/4433/comments/4622560
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
What worked for me in similar problem with |
Beta Was this translation helpful? Give feedback.
-
I solved it by realizing that my .encryptedKey.json was not updated after shifting from Ganache to using a metamask wallet. So I updated the private key and execute the encryptKey.js snippet |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm sorry for may bad english,
I've searched on google and read github discussions related to this matter, but didn't find any solution yet, except in #3308
but mine is when I tried to deploy to Goerli tesnet with my metamask account, not to Ganache like in #3308
Here is my deploy.js:
here is my .env file:
and here is my error:
I really need your help. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions