Skip to content

Would love to get this fixed / lesson 9 - unit testing #6031

Answered by alfaqi
Astronaut828 asked this question in Q&A
Discussion options

You must be logged in to vote

I tried to change between [] and "0x" of await raffle.performUpkeep("0x"),
it run into new issue.

Error: Transaction reverted: function call to a non-contract account

to solve this, in 01-deploy-raffle.js file I changed getContractAt to getContract
Actually, I did some changes, here is the whole code

const { network, ethers } = require("hardhat")
const { developmentChains, networkConfig } = require("../helper-hardhat-config")
const { verify } = require("../utils/verify")
const VRF_SUB_FUND_AMOUNT = ethers.parseEther("1") // 1 Ether, or 1e18 (10^18) Wei

module.exports = async function ({ getNamedAccounts, deployments }) {
    const { deploy, log } = deployments
    const { deployer } = a…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@alfaqi
Comment options

Answer selected by Astronaut828
@Astronaut828
Comment options

@alfaqi
Comment options

@alfaqi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants