-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
After long debugging time i find out the actual problem, which is related to ethers which is because of JsonpcProvider, Thank You ! |
Beta Was this translation helpful? Give feedback.
-
This may not be helpful, but I got the same error for a different reason: I cloned a version of the code where I needed to use the getPriceFeed() public view to return the price feed, as the s_priceFeed has a different name and is private: describe("constructor", async function () {
it("sets the aggregator addresses correctly", async function () {
const response = await fundMe.getPriceFeed()
assert.equal(response, mockV3Aggregator.address)
})
}) |
Beta Was this translation helpful? Give feedback.
After long debugging time i find out the actual problem, which is related to ethers which is because of JsonpcProvider,
I have solved this and shared my solution on Ethereum StackOverflow :
https://ethereum.stackexchange.com/questions/146902/before-each-hook-for-sets-the-aggregator-addresses-correctly-typeerror-cann/146903#146903
Thank You !
Don't forget to upvote, it consumed my half day to debug 😷.