Skip to content

Lesson 6: Contract not found on mainnet-fork-dev #308

Answered by carlitox477
carlitox477 asked this question in Q&A
Discussion options

You must be logged in to vote

I found the answer to my problem after spending 4 hours looking the bug: I'm dumb XD

It was a sintax error. Instead of price_feed_address=config["networks"][network.show_active()]["eth_usd_price_feed"] I put price_feed_address=config["networks"][network.show_active()]["eth_usd_price_feed"],. If you don't see the problem like me, here a hint: look for the comma (,) .

So, that's why price_feed_address was interpreted as a tuple and that's why I got the error:

ValueError: constructor '('0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419',)' - '('0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419',)' is not a valid ETH address

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@carlitox477
Comment options

@cromewar
Comment options

Comment options

You must be logged in to vote
4 replies
@cromewar
Comment options

@GitGAMERGLOVES
Comment options

@IamSiddharthChoudhary
Comment options

@Mobey-eth
Comment options

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