Skip to content

Foundry101, raffle, lesson 39 one big test, debugging at the end of the lesson. #2655

Answered by EngrPips
BowtiedHarpyEagle asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @BowtiedHarpyEagle, Please retry the test with the HelperConfig below

// SPDX-License-Identifier: MIT
pragma solidity 0.8.19;

import {Script} from "forge-std/Script.sol";
import {Raffle} from "../src/Raffle.sol";
import {VRFCoordinatorV2_5Mock} from "@chainlink/contracts/src/v0.8/vrf/mocks/VRFCoordinatorV2_5Mock.sol";
import {LinkToken} from "test/mocks/LinkToken.sol";

abstract contract CodeConstants {
    uint256 public constant SEPOLIA_NETWORK_ID = 11155111;
    uint256 public constant LOCAL_CHAIN_ID = 31337;

    //Mock Contract Constants
    uint96 public constant MOCK_BASE_FEE = 0.25 ether;
    uint96 public constant MOCK_GAS_PRICE_LINK = 1e9;
    int256 public constant MOCK_…

Replies: 2 comments 13 replies

Comment options

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

Comment options

You must be logged in to vote
12 replies
@EngrPips
Comment options

@BowtiedHarpyEagle
Comment options

@EngrPips
Comment options

@BowtiedHarpyEagle
Comment options

@EngrPips
Comment options

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