-
Notifications
You must be signed in to change notification settings - Fork 403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: sample Contract of data feeds in solidity is failing to fetch latestRounddata. #1940
Comments
Hey @sandeepV2, I followed the steps you stated above and successfully got back the price from the priceFeed contract. Here, I deployed the priceFeed contract to the sepolia testnet Here, I sent a transaction to read the price on the priceFeed contract I initially deployed You can see in the below image the price that got returned to me |
Thank you @EngrPips for quick response. I am facing this issue with default env set on Remix (VM CONCUN). Should it be different ?
Does sepolia testnet need connecting to wallet with some test ethers/tokens ? |
I used the |
Hmm @EngrPips interesting, Let me share the exact step of failures with screenshots.
Error :
|
I get the same error while interacting with initially deployed instance too, Let me know if am missing something here ? |
Did you connect the Remix to Metamask? |
Nope i did not connect any wallet. Opened fresh tab with (Open in Remix) button. |
When you get to Remix, connect the Remix to your metamask[ sepolia network], then deploy the contract. If you do so, it will work when you try to get the price. You are deploying to the Remix chain and there is no chainlink pricefeed on the Remix local chain that would send price details to you. |
1 similar comment
When you get to Remix, connect the Remix to your metamask[ sepolia network], then deploy the contract. If you do so, it will work when you try to get the price. You are deploying to the Remix chain and there is no chainlink pricefeed on the Remix local chain that would send price details to you. |
You did mention that it worked for Cancun evm too. |
HI @sandeepV2 Were you able to deploy your contract to Ethereum Sepolia and test the data feed? |
@aelmanaa, Do you have any difficulty deploying to Ethereum Sepolia and testing the data feed? |
@sandeepV2, I switch Environment to Remix VM - Sepolia fork and it works fine |
Describe the bug
Error on Remix IDE in getting the latestRoundData.
decoded output | { "error": "Failed to decode output: Error: data out-of-bounds (length=0, offset=32, code=BUFFER_OVERRUN, version=abi/5.7.0)" }
Snippet of error
`
To Reproduce
Steps to reproduce:
getChainlinkDataFeedLatestAnswer
button on deployed instance.URLs
https://docs.chain.link/data-feeds/using-data-feeds#solidity
Expected behavior
The latestRoundData function must return five values representing information about the latest price data.
Additional context
Is it due to using of old contract hash ?
The text was updated successfully, but these errors were encountered: