Skip to content

Lesson 9- AssertionError: Expected transaction to be reverted with reason 'Raffle__SendMoreToEnterRaffle', but it reverted with a custom error #5816

Closed Answered by shikhar229169
VasuShrivastava asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it is giving me same error.
I recommend you to refactor your hardhat config file:

require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require("hardhat-deploy");
require("solidity-coverage");
require("hardhat-gas-reporter");
require("hardhat-contract-sizer");
require("dotenv").config();

And also your package.json file

{
  "devDependencies": {
    "@chainlink/contracts": "^0.6.1",
    "@nomiclabs/hardhat-ethers": "npm:hardhat-deploy-ethers",
    "@nomiclabs/hardhat-etherscan": "^3.1.6",
    "@nomiclabs/hardhat-waffle": "^2.0.5",
    "chai": "^4.3.7",
    "dotenv": "^16.0.3",
    "ethereum-waffle": "^4.0.9",
    "ethers": "5.7.2",
    "hardhat": "^2.12.7",
    "…

Replies: 1 comment 6 replies

Comment options

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

@shikhar229169
Comment options

@VasuShrivastava
Comment options

@shikhar229169
Comment options

Answer selected by VasuShrivastava
@VasuShrivastava
Comment options

@shikhar229169
Comment options

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