lesson-7 TypeError: FundMe.s_priceFeed is not a function
#2047
-
|
Hi! I just was I tried with |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 12 replies
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
Hey @MasterofBlockchain Replace line 27 with You are trying to call |
Beta Was this translation helpful? Give feedback.
-
|
Worked for me after removing the parenthesis |
Beta Was this translation helpful? Give feedback.
Hey @MasterofBlockchain Replace line 27 with
const response = await FundMe.getPriceFeed()You are trying to call
s_priceFeedwhich is markedprivatein your contract hence it cannot be accessed outside the contract. Instead, use the getter functiongetPriceFeed()that you created at the bottom of the contract to retrieves_priceFeed