Skip to content

Leason 9: TypeError: Cannot read properties of undefined (reading 'length') #5068

Answered by N-dcool
N-dcool asked this question in Q&A
Discussion options

You must be logged in to vote

here is my 00-deploy-mocks.js :

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

const BASE_FEE = ethers.utils.parseEther("0.25"); // 0.25 is the premium. It cost 0.25 LINK per request.
const GAS_PRICE_LINK = 1e9; //link per gas or calculated value based on the gas price of the chain

// what if ETH price 📈 $1,000,000,000
// Chainlink Nodes pay the gas fees to give us randomness & do external execution
// so they price of requests change based on the price of gas

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

Replies: 1 comment 3 replies

Comment options

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

@N-dcool
Comment options

@paulcoffee85
Comment options

Answer selected by N-dcool
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