Release

Release
May 24, 2024
VRF

Updated VRF V2.5 contracts

The @chainlink/contracts package version 1.1.1 is now available. It includes the updated wrapper and interface contracts for VRF 2.5 direct funding, which had not been included in the @chainlink/contracts package version 1.1.0. The DirectFundingConsumer.sol example contract has been updated to reflect this.

The @chainlink/contracts also includes an updated function signature for fulfillRandomWords in the VRFConsumerBaseV2Plus contract, which applies only to subscription users. This function signature has not changed in the VRFV2PlusWrapperConsumerBase, so this does not affect direct funding users.

When using package version 1.1.1 and later, update your fulfillRandomWords function signature to match the VRFConsumerBaseV2Plus contract, which has changed to: function fulfillRandomWords(uint256 requestId, uint256[] calldata randomWords)

In the @chainlink/contracts package version 1.1.0 and earlier, the randomWords parameter has a memory storage location.