Skip to content

network.config is not a function #4688

Answered by Koowah
philiplorber asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @philipo0 ,

You used parentheses instead of brackets in this line : ethUsdPriceFeedAddress = network.config(network.name)["ethUsdPriceFeed"]
It should instead be ethUsdPriceFeedAddress = network.config[network.name]["ethUsdPriceFeed"]

Pay extra attention to the error message. It tells you the line where the error is (in this case 31/34) and gives you information. Here, you're told "networkConfig is not a function" which means that you wrote networkConfig() somewhere.

Cheers 😄

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@philiplorber
Comment options

Comment options

You must be logged in to vote
1 reply
@philiplorber
Comment options

Answer selected by philiplorber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants