Error: could not decode result data (value="0x", info={ "method": "pyth", "signature": "pyth()" }, code=BAD_DATA, version=6.10.0) #4827
Labels
status:needs-more-info
There's not enough information to start working on this issue
Version of Hardhat
2.19.5
What happened?
I am trying to test a contract. It works on hardhat network but I need to be on a testnet because I am using a price oracle in my contract. When I use
console.log(pyth);
in the tests it logs the correct address but I am still getting the errorError: could not decode result data (value="0x", info={ "method": "pyth", "signature": "pyth()" }, code=BAD_DATA, version=6.10.0)
and a failed test. I don't know what is happening. Thank you, please do not hestitate to ask for more details 🙏🏻Minimal reproduction steps
My contract (partial)
The tests
The config
Search terms
Error: could not decode result data, tests
The text was updated successfully, but these errors were encountered: