-
Hi everyone, Not sure why I'm getting this error below when I run FundMe.test.js code: Fundme.sol (priceFeed code): Directory Structure: Help please. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
Push the repo to GitHub and share link - much easier to diagnose |
Beta Was this translation helpful? Give feedback.
-
We can get
|
Beta Was this translation helpful? Give feedback.
We can get
priceFeed
address by 2 ways:If
s_priceFeed
variable in FundMe.sol is public, thenawait fundMe.s_priceFeed()
would work and will return the address, because solidity compiler creates getter functions for every public variables.Or you should create a getter function yourself for priceFeed, which we did in the course by definining it as