Cyfrin / foundry-smart-contract-lottery-cu

47 stars 42 forks source link

A question #64

Closed langjiyunmie closed 1 week ago

langjiyunmie commented 1 week ago

I see that the contract is designed for VRFv2, but the scripts and mock contracts are implemented for VRFv2.5.Why can they match and run? Are they compatible?

Equious commented 1 week ago

VRFv2.5 was upgraded such that the returned subscription Id is a uint256, this breaks integrations with previous versions of the library.

langjiyunmie commented 1 week ago

Thank you for the explanation