Closed przemyslawdrozd closed 1 year ago
I have found the issue. Just typo on Raffle.sol constructor:
constructor(
uint256 enterenceFee,
uint256 interval,
address vrfCoordinator,
bytes32 gasLane,
uint64 subId,
uint32 callbackGasLimit
) VRFConsumerBaseV2(vrfCoordinator) {
i_enterenceFee = enterenceFee;
i_interval = interval;
i_vrfCoordinator = VRFCoordinatorV2Interface(vrfCoordinator);
i_gasLane = gasLane;
i_subId = subId;
i_callbackGasLimit = callbackGasLimit;
s_lastTimeStamp - block.timestamp; <-- typo here
}
I have started to write tests (5:04h) for Raffle contract, but executing forge test I got:
Looks like issue is somewhere on calling contract creation inside DeployRaffle
When I will comment this out, issue gone, but I cannot find what is the actual cause of it.