Skip to content

Commit

Permalink
Added comprehensive tests for all functionalities of VRFCoordinatorV2…
Browse files Browse the repository at this point in the history
…Mock
  • Loading branch information
kidambisrinivas committed Sep 12, 2023
1 parent 9bc8b88 commit 436f425
Show file tree
Hide file tree
Showing 2 changed files with 331 additions and 28 deletions.
12 changes: 6 additions & 6 deletions contracts/src/v0.8/mocks/VRFCoordinatorV2Mock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ contract VRFCoordinatorV2Mock is VRFCoordinatorV2Interface, ConfirmedOwner {

function getConfig()
external
view
pure
returns (
uint16 minimumRequestConfirmations,
uint32 maxGasLimit,
Expand All @@ -269,7 +269,7 @@ contract VRFCoordinatorV2Mock is VRFCoordinatorV2Interface, ConfirmedOwner {

function getFeeConfig()
external
view
pure
returns (
uint32 fulfillmentFlatFeeLinkPPMTier1,
uint32 fulfillmentFlatFeeLinkPPMTier2,
Expand Down Expand Up @@ -302,19 +302,19 @@ contract VRFCoordinatorV2Mock is VRFCoordinatorV2Interface, ConfirmedOwner {
_;
}

function getFallbackWeiPerUnitLink() external view returns (int256) {
function getFallbackWeiPerUnitLink() external pure returns (int256) {
return 4000000000000000; // 0.004 Ether
}

function requestSubscriptionOwnerTransfer(uint64 _subId, address _newOwner) external pure override {
function requestSubscriptionOwnerTransfer(uint64 /*_subId*/, address /*_newOwner*/) external pure override {
revert("not implemented");
}

function acceptSubscriptionOwnerTransfer(uint64 _subId) external pure override {
function acceptSubscriptionOwnerTransfer(uint64 /*_subId*/) external pure override {
revert("not implemented");
}

function pendingRequestExists(uint64 subId) public view override returns (bool) {
function pendingRequestExists(uint64 /*subId*/) public pure override returns (bool) {
revert("not implemented");
}
}
Loading

0 comments on commit 436f425

Please sign in to comment.