Skip to content

ReferenceError: blockToken is not defined #5203

Answered by alymurtazamemon
kihiuFrank asked this question in Q&A
Discussion options

You must be logged in to vote

@kihiuFrank This blockToken variable is not defined;

beforeEach("runs before each test", async () => {
    let accounts, deployer, blockToken
    accounts = await ethers.getSigners()
    accounts[0] = deployer
    await deployments.fixture(["blockToken"])

    blockToken = await ethers.getContract("BlockToken")
})

update this to this;

let blockToken;
beforeEach("runs before each test", async () => {
    let accounts, deployer, blockToken
    accounts = await ethers.getSigners()
    accounts[0] = deployer
    await deployments.fixture(["blockToken"])

    blockToken = await ethers.getContract("BlockToken")
})

Replies: 1 comment 1 reply

Comment options

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

Answer selected by kihiuFrank
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