Skip to content

Lesson 9: Error: invalid BigNumber value (argument="value", value=undefined, code=INVALID_ARGUMENT, version=bignumber/5.7.0) #5028

Answered by arifulone
arifulone asked this question in Q&A
Discussion options

You must be logged in to vote

i put the subscriptionId and interval at 31337 . now it's working.
helper-hardhat-config.js

const { network, ethers } = require("hardhat")

networkConfig = {
    5: {
        name: "goerli",
        vrfCoordinatorV2: "0x2Ca8E0C643bDe4C2E08ab1fA0da3401AdAD7734D",
        etntranceFee: ethers.utils.parseEther("0.01"),
        gasLane: "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",
        subscriptionId: "0",
        callbackGasLimit: "500000",
        interval: "30",
    },
    31337: {
        name: "hardhat",
        entranceFee: ethers.utils.parseEther("0.01"),
        gasLane: "0x79d3d8832d904592c0bf9818b621522c988bb8b0c05cdc3b15aea1b6e8db0c15",
        subscript…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@alymurtazamemon
Comment options

@arifulone
Comment options

@paulcoffee85
Comment options

@arifulone
Comment options

@paulcoffee85
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by arifulone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants