LESSONS 9: AssertionError: expected '0x00000000000000000000000000000000000…' to equal '0x97e8C38f71B99eec9017eF9Bc01AA8Ee81c…' #5614
-
Hi, I am at the staging test stage and running the command, "yarn hardhat test --network sepolia", and I have got this error: Raffle unit test 0 passing (3s)
here below, my raffle.staging.js file: const { developmentChains, networkConfig } = require("../../helper-hardhat-config") developmentChains.includes(network.name)
I thought that the zero address was due to some mistake on the subscription or to the upkeep stages, but are both active and fund it here my hardhat.config.js file: /** @type import('hardhat/config').HardhatUserConfig */ const SEPOLIA_RPC_URL = module.exports = { const { ethers } = require("hardhat") const networkConfig = { module.exports = { Here my repo any clue what I am missing? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
My repo sorry: https://github.com/cryptocambi/Hardhat-SmartContract-Lottery |
Beta Was this translation helpful? Give feedback.
-
I have add console.log to see if the balances are the same: developmentChains.includes(network.name)
this is the result, the two balance are actually equal: Raffle unit test 0 passing (3s)
|
Beta Was this translation helpful? Give feedback.
-
Re-order the steps of testing, like enter the lottery with pay the fees (with specific account), then pick up the winner. |
Beta Was this translation helpful? Give feedback.
Re-order the steps of testing, like enter the lottery with pay the fees (with specific account), then pick up the winner.