-
Hello, I receive an error when I try to get the PriceFeed Data while using the mainnet-fork network. Deployment works and interacting with it does work as wel, but when I try to get the price data it runs into the following error. I don't have this problem when using the rinkeby network or when using other local networks. I also checked the network address in the config file and this is the correct address for retrieving the pricefeed on the mainnet. I added the line 'print(fund_me.getPrice())' in the deploy.py file to actually call the pricefeed, which makes it run into this error. Does anyone have any idea why I run into this error? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hello @11296925 |
Beta Was this translation helpful? Give feedback.
-
You are doing it the wrong way
…On Thu, Jun 9, 2022, 3:22 PM Vasiliy Gualoto ***@***.***> wrote:
Hello @11296925 <https://github.com/11296925>
Your are most likely using a wrong configuration of mainnet-fork-dev,
please delete that network and add it again, also please double check the
price feed address to match the repo one.
Cheers
—
Reply to this email directly, view it on GitHub
<#1534 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZRAHAUUTAG74G2FJO36CBDVOH4YZANCNFSM5YHFJGMQ>
.
You are receiving this because you are subscribed to this thread.Message
ID:
<smartcontractkit/full-blockchain-solidity-course-py/repo-discussions/1534/comments/2914108
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
I fixed the problem. It turned out that I had to close Ganache completely and then run it. For some reason the local blockchain in ganache is being used when using mainnet-fork and leaving Ganache open, so for this reason it was impossible to read contracts from the mainnet. I still don't get this issue because ganache-cli automatically uses Ganache when it is running right? And I think Ganache is actually meant to be open all the time? @cromewar Do you have any idea why this is the case? Thanks for all the help! |
Beta Was this translation helpful? Give feedback.
I fixed the problem. It turned out that I had to close Ganache completely and then run it. For some reason the local blockchain in ganache is being used when using mainnet-fork and leaving Ganache open, so for this reason it was impossible to read contracts from the mainnet. I still don't get this issue because ganache-cli automatically uses Ganache when it is running right? And I think Ganache is actually meant to be open all the time? @cromewar Do you have any idea why this is the case? Thanks for all the help!