Skip to content

Lesson 9: "Error: invalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT," #1826

Discussion options

You must be logged in to vote

First in helper-hardhat-config.js
Replace this:

 31337: {
        name: "localhost",
        subscriptionId: "588",
        gasLane: "0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc", // 30 gwei
        keepersUpdateInterval: "30",
        raffleEntranceFee: "100000000000000000", // 0.1 ETH
        callbackGasLimit: "500000", // 500,000 gas
    },

with

31337: {
name: "hardhat",
entranceFee: ethers.utils.parseEther("0.01"),
gasLane: "0xd89b2bf150e3b9e13446986e571fb9cab24b13cea0a43ea20a6049a85cc807cc",
subscriptionId: "0",
callbackGasLimit: "500000",
interval: "30",
},

the arguments in 01-deploy-raffle.js script should be in same order as specified in contract constructor…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@krakxn
Comment options

Comment options

You must be logged in to vote
2 replies
@emmanuelf37
Comment options

@adityabhattad2021
Comment options

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