Skip to content

Lesson 9 ----- [FAIL. Reason: InvalidConsumer()] testCantEnterRaffleWhenCalculating() #1728

Discussion options

You must be logged in to vote

God Damn Man, i Hate it When i Make Such Silly Mistakes!

you're right, i need to create Subscription ID before Deploying the Raffle Contract!

my old DeployRaffle.s.sol Which Caused an Error When Running test:

`

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.25;

import {Script} from "forge-std/Script.sol";
import {Raffle} from "../src/Raffle.sol";
import {HelperConfig} from "./HelperConfig.s.sol";
import {CreateSubscription,FundSubscription,AddConsumer} from "./interactions.s.sol";

contract DeployRaffle is Script {

function run() external returns (Raffle,HelperConfig) {

    HelperConfig helperConfig = new HelperConfig();
    (uint _entranceFee, uint interval, address _vrfCoordinator…

Replies: 1 comment 3 replies

Comment options

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

@justAWanderKid
Comment options

Answer selected by justAWanderKid
@EngrPips
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