Skip to content

Commit

Permalink
fix: deploy mock coordinator on anvil
Browse files Browse the repository at this point in the history
  • Loading branch information
ubinatus committed May 7, 2024
1 parent 72a4355 commit 806d6d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/ChainlinkConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ contract ChainlinkConfig {
}

function getAnvilEthConfig() internal returns (NetworkConfig memory anvilNetworkConfig) {
address vrfCoordinator = address(new VRFCoordinatorV2PlusMock(0.01 ether, 1_000_000_000));
address vrfCoordinator;

if (block.chainid == 31_337) {
vrfCoordinator = address(new VRFCoordinatorV2PlusMock(0.01 ether, 1_000_000_000));
}

anvilNetworkConfig = NetworkConfig({
subscriptionId: 0,
Expand Down

0 comments on commit 806d6d8

Please sign in to comment.