-
TypeError: Cannot read properties of undefined (reading 'parseEther') 00-deploy const { ethers } = require("hardhat") const BASE_FEE = ethers.utils.parseEther("0.25") module.exports = async function ({ getNamedAccounts, deployments }) {
} module.exports.tags = ["all", "mocks"] 01-deploy const { network, ethers } = require("hardhat") const VRF_SUB_FUND_AMOUNT = ethers.utils.parseEther("30") module.exports = async function ({ getNamedAccounts, deployments }) {
} |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
please share your repo |
Beta Was this translation helpful? Give feedback.
-
Use ethers.parseEther() |
Beta Was this translation helpful? Give feedback.
-
In ethers 6 you can use:
instead of
|
Beta Was this translation helpful? Give feedback.
Use ethers.parseEther()