Skip to content

Commit 6f66b1d

Browse files
committed
update code comments
1 parent 06fadc2 commit 6f66b1d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/chainlink_compatible/ChainlinkVRFCoordinatorV2_5Adapter.sol

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ contract ChainlinkVRFCoordinatorV2_5Adapter is
124124
/// secure way by the VRFCoordinator from a single random value supplied by the oracle.
125125
///
126126
/// extraArgs - Encoded extra arguments that has a boolean flag for whether payment
127-
/// should be made in native or LINK. Payment in LINK is only available if the LINK token is available to this contract.
127+
/// should be made in native or LINK.
128+
/// Note: This contract does not support payments in LINK.
128129
/// @return requestId - A unique identifier of the request. Can be used to match
129130
/// a request to a response in fulfillRandomWords.
130131
function requestRandomWords(VRFV2PlusClient.RandomWordsRequest calldata req)
@@ -238,7 +239,7 @@ contract ChainlinkVRFCoordinatorV2_5Adapter is
238239

239240
/// @notice Cancel a subscription
240241
/// @param subId - ID of the subscription
241-
/// @param to - Where to send the remaining LINK to
242+
/// @param to - Where to send the remaining native tokens to, e.g., Ether.
242243
function cancelSubscription(uint256 subId, address to) external override onlySubscriptionOwner(subId) {
243244
randomnessSender.cancelSubscription(subId, to);
244245
}

src/chainlink_compatible/internal/ChainlinkVRFV2PlusWrapperConsumerBaseStub.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ pragma solidity ^0.8.0;
33

44
import {IVRFV2PlusWrapper} from "@chainlink/contracts/src/v0.8/vrf/dev/interfaces/IVRFV2PlusWrapper.sol";
55

6-
/// @dev Partial implementation of Chainlink's `VRFV2PlusWrapperConsumerBase` without option to fund requests with LINK tokens
6+
/// @dev Partial implementation of Chainlink's `VRFV2PlusWrapperConsumerBase` without the option to fund requests with LINK tokens.
7+
/// @dev Only native tokens are supported, e.g., Ether.
78
/// @notice Interface for contracts using VRF randomness through the VRF V2 wrapper
89
/// ********************************************************************************
910
/// @dev PURPOSE

0 commit comments

Comments
 (0)