Lesson 7: 10:58:49 Error Invalid Address #2009
Replies: 5 comments 7 replies
-
This might not be related to your problem but there is an error in
It should be |
Beta Was this translation helpful? Give feedback.
-
If it is helpful: I'm trying to deploy the contract to Goerli, and the error changes slightly if I, for example, use an ETH/BTC price feed instead of ETH/USD. So I'm thinking this has something to do with it. I can't find any issues in the code that may be causing this, so I am going to go back and try to trouble shoot if it may be an issue with the price feed contract, my Alchemy RPC_URL, my metamask account or anything else... |
Beta Was this translation helpful? Give feedback.
-
For more info, this is happening that I can see through my alchemy UI: |
Beta Was this translation helpful? Give feedback.
-
Thank you for sharing the solution!
Would you please share the correct line of the code?
2022年9月1日(木) 午前1:18 Aadil Saudagar ***@***.***>:
… @paulgs9988 <https://github.com/paulgs9988> @MadAra-UcHiHa89
<https://github.com/MadAra-UcHiHa89> I am getting the same error as well.
Were you able to solve this issue?
I resolved it , I was passing an array of array as the contructor
argument. So by just passing an array with ethUsdPriceFeed as the only
element the issue was resolved. Just check if you are doing the same
mistake.
—
Reply to this email directly, view it on GitHub
<#2009 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACXO6NEZQBZW3GOCDXKI2NDV4BREDANCNFSM57MZUK4A>
.
You are receiving this because you commented.Message ID:
<smartcontractkit/full-blockchain-solidity-course-js/repo-discussions/2009/comments/3524620
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
As I did for troubleshooting purposes, try outputting the ethUsdPriceFeedAddress to see if the variable is correctly assigned as below. let ethUsdPriceFeedAddress
if (developmentChains.includes(network.name)) {
const ethUsdAggregator = await deployments.get("MockV3Aggregator")
ethUsdPriceFeedAddress = ethUsdAggregator.address
} else {
ethUsdPriceFeedAddress = networkConfig[chainId]["ethUsdPriceFeed"]
}
log(ethUsdPriceFeedAddress)
const args = [ethUsdPriceFeedAddress] If it is correctly assigned, it should outputs this contract address, 0x8A753747A1Fa494EC906cE90E9f37563A8AF630e. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I see a similar issue to the one I am having from a previous post; however, I do not have the same issue as that user so that solution didn't work for me. I am getting the following error:
I have tried troubleshooting the error and am really not sure what the issue could be. My 01-deploy-fund-me.js file is as follows:
And my hardhat.config.js is:
Finally my helper file is:
I'm at a loss as to how to proceed and any help would be very appreciated!
Beta Was this translation helpful? Give feedback.
All reactions