Skip to content

Lesson 7 : Error: could not decode result data (value="0x", info={ "method": "getPriceFeed", "signature": "getPriceFeed()" }, code=BAD_DATA, version=6.7.1) #6102

Discussion options

You must be logged in to vote

Hey actually we need to use getContractAt() but the function definition is a bit different . Here is my FundMe.test.js snapshot for reference , you can use it this way :

        let fundMe
        let mockV3Aggregator
        let deployer
        const sendValue = ethers.parseEther("1")
        beforeEach(async () => {
            // const accounts = await ethers.getSigners()
            // deployer = accounts[0]
            deployer = (await getNamedAccounts()).deployer
            console.log(`deployer is : ${deployer}`)
            await deployments.fixture(["all"])
            const myContract = await deployments.get("FundMe");
            //console.log(myContract)
            //conso…

Replies: 5 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@tusharr1411
Comment options

@alfaqi
Comment options

@mscurtescu
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@mscurtescu
Comment options

@smahdi-dev
Comment options

@david-drvar
Comment options

Answer selected by tusharr1411
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
9 participants