We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60232c1 commit eb49a06Copy full SHA for eb49a06
contracts/src/rng/VRFSubscriptionManagerV2.sol
@@ -72,6 +72,7 @@ contract VRFSubscriptionManagerV2 {
72
vrfCoordinator = VRFCoordinatorV2Interface(_vrfCoordinator);
73
linkToken = LinkTokenInterface(_linkToken);
74
governor = _governor;
75
+ createNewSubscription();
76
}
77
78
// ************************************* //
@@ -112,7 +113,7 @@ contract VRFSubscriptionManagerV2 {
112
113
/**
114
* @dev Creates a new subscription, overriding the previous one to be manageable by the contract.
115
*/
- function createNewSubscription() external onlyByGovernor {
116
+ function createNewSubscription() public onlyByGovernor {
117
subscriptionId = vrfCoordinator.createSubscription();
118
119
0 commit comments