I am very new to Solidity and Blockchain, have a background of Web Developer though, and as many i am following the Youtube video on these technologies by freeCodeCamp.org channel, where the VRF v1 is implemented. I am then updating it to the VRF v2 on my contract, i can say i understood its cycle and it works fine through Remix and the Subscription Manager.
Although i have a questions on when trying to implement it programmatically with Brownie(Python) on either the Rinkeby testnet or the ganache-cli forked with Infura endpoint
createSubscription():
function createNewSubscription() private onlyOwner {
// Create a subscription with a new subscription ID.
address[] memory consumers = new address[](1);
consumers[0] = address(this);
s_subscriptionId = COORDINATOR.createSubscription();
// Add this contract as a consumer of its own subscription.
COORDINATOR.addConsumer(s_subscriptionId, consumers[0]);
}
When creating the subscription through my Contract using the above function, it sets the Contract address as the admin of the subscription, whereas when i create it through the Subscription Manager on the Chainlink website it sets my Metamask account as the admin which is what i want.
Is there a way to obtain the same through the script?