Replies: 1 comment
-
|
Try change await deploy("VRFCoordinatorV2Mock", {
from: deployer,
log: true,
args: args,
})
``` |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
const { network, ethers } = require("hardhat") const { deploymentChains, developmentChains } = require("../helper-hardhat-config") const BASE_FEE = ethers.utils.parseEther("0.25") const GAS_PRICE_LINK = 1e9 //link per gas. Calculated value based on the gas price of the chain. module.exports = async function ({ getNamedAccounts, deployments }) { const { deploy, log } = deployments const { deployer } = await getNamedAccounts() const args = [BASE_FEE, GAS_PRICE_LINK] const chainID = network.config.chainId if (developmentChains.includes(network.name)) { log("Local network detected! Deploying mocks...") //deploy a mock vrfCoordinator await deploy("VRFCoordinatorV2Mock", { from: deploy, log: true, args: args, }) log("Mock Deployed!") log("--------------------------------------------") } } module.exports.tags = ["all", "mocks"]In this code of deploy mocks i am running into error
eventhough, I don't have any toLowerCase function in my code.
The whole output when i run this code is:
can someone tell me what's wrong?
Beta Was this translation helpful? Give feedback.
All reactions