【问题标题】:Getting this ERROR processing skip func of , while deploying contract在部署合同时获取此错误处理跳过 func
【发布时间】:2023-02-21 22:19:46
【问题描述】:

我目前正在观看 fcc solidity 课程,我正在尝试部署智能合约,但它会抛出此错误 idk 不知道该怎么做

ERROR processing skip func of /home/deepak/blockchain-dev/hardhat-raffle/deploy/00-deploy-mock.js:

00-部署模拟.js:

const { network } = require("hardhat")
const { developmentChains, networkConfig } = require("../helper-hardhat-config")

const BASE_FEE = ethers.utils.parseEther("0.25") //0.25link is cost to get Random no
const GAS_PRICE_LINK = 1e9 // calculated value based on the gas price of the chain
const args = [BASE_FEE, GAS_PRICE_LINK]
module.exports = async function ({ getNamedAccounts, deployments }) {
   const { deploy, log } = deployments
   const { deployer } = await getNamedAccounts()
   const chainId = network.config.chainId

   if (developmentChains.includes(network.name)) {
      log("Local Network detected! Deploying.......")
      await deploy("VRFCoordinatorV2Mock", {
         from: deployer,
         args: args,
         log: true,
         waitConfirmations: network.config.blockConfirmations || 1,
      })
      log("Mocks Deployed!")
      log("-------------------------------------------------")
   }
}
module.exports.tags = ["all", "mocks"]

【问题讨论】:

    标签: solidity hardhat


    【解决方案1】:

    我卸载了

    @nomiclabs/hardhat-waffle

    并安装了@nomicfoundation/hardhat-chai-matchers,终于成功了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-02
      • 1970-01-01
      • 2022-01-12
      • 2020-01-09
      • 1970-01-01
      • 2022-01-18
      • 2014-08-12
      • 1970-01-01
      相关资源
      最近更新 更多