Skip to content

Commit 9856941

Browse files
committed
fix(contracts): update mock to also create subscription in constructor
1 parent 4f3be7a commit 9856941

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contracts/src/rng/mock/VRFSubscriptionManagerV2Mock.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ contract VRFSubscriptionManagerV2Mock {
6060
constructor(address _governor, address _vrfCoordinator) {
6161
vrfCoordinator = VRFCoordinatorV2InterfaceMock(_vrfCoordinator);
6262
governor = _governor;
63+
createNewSubscription();
6364
}
6465

6566
// ************************************* //
@@ -81,7 +82,7 @@ contract VRFSubscriptionManagerV2Mock {
8182
/**
8283
* @dev Creates a new subscription, overriding the previous one to be manageable by the contract.
8384
*/
84-
function createNewSubscription() external onlyByGovernor {
85+
function createNewSubscription() public onlyByGovernor {
8586
subscriptionId = vrfCoordinator.createSubscription();
8687
}
8788

0 commit comments

Comments
 (0)