Skip to content

Conversation

SyedAsadKazmi
Copy link
Collaborator

Some devs are asking for this functionality, as can be seen from this Eth-StackExchange post, so I've added thetopUpSubscriptionWithNativeToken and withdrawNativeToken functions to support the same.

…nctions in samples/VRF/v2-5/SubscriptionManager.sol file
Copy link

vercel bot commented Oct 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview Dec 19, 2024 3:38pm

@QingyangKong
Copy link
Contributor

Hi @SyedAsadKazmi , thanks for the contribution. Since this PR is to help users to fund the vrf 2.5 subscription with native tokens, I think it might be a good idea that you can also add a new function to allow them to request randomness with native payment.

For now, although users can fund the subscription with native tokens, there is no function in the contract for them to request randomness with native balance.

Copy link

vercel bot commented Dec 13, 2024

Someone is attempting to deploy a commit to the Chainlink Labs Team on Vercel.

A member of the Team first needs to authorize it.

@SyedAsadKazmi
Copy link
Collaborator Author

SyedAsadKazmi commented Dec 13, 2024

Hi @SyedAsadKazmi , thanks for the contribution. Since this PR is to help users to fund the vrf 2.5 subscription with native tokens, I think it might be a good idea that you can also add a new function to allow them to request randomness with native payment.

For now, although users can fund the subscription with native tokens, there is no function in the contract for them to request randomness with native balance.

Hello @QingyangKong,

Thanks for the feedback. I've added the enableNativePayment argument to the requestRandomWords() function. Please check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants