You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* use vrf v2 direct funding for RandomNumberConsumer
* use vrf v2 subscription for RandomSVG
* change auto fund amount to 5 LINK
Co-authored-by: ivaylonikolov7 <ivnikolov721@gmail.com>
Co-authored-by: imollov <ivomollov@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+18-14Lines changed: 18 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Built with:
30
30
31
31
In order to use the frontend portion of the demo application you will need
32
32
33
-
- A crypto wallet such as [Metamask](https://metamask.io/) or [Coinbase Wallet](https://www.coinbase.com/wallet)
33
+
- A crypto wallet such as [Metamask](https://metamask.io/) or [Coinbase Wallet](https://www.coinbase.com/wallet)
34
34
- Test $LINK for the relevant testnet. You can get some at the [Chainlink Faucets](https://faucets.chain.link/) page.
35
35
- Test $ETH to pay for gas costs. You can get some at the [Chainlink Faucets](https://faucets.chain.link/) page.
36
36
@@ -97,6 +97,10 @@ To deploy on a public network:
97
97
yarn deploy --network goerli
98
98
```
99
99
100
+
Before deploying `RandomSVG` contract on a public network, an ID of a prefunded VRF subscription must be set in [`helper-hardhat-config.ts`](/packages/hardhat/helper-hardhat-config.ts).
101
+
102
+
See how to [Create and Fund a Subscription](https://docs.chain.link/docs/vrf/v2/subscription/ui/).
103
+
100
104
## Auto-Funding
101
105
102
106
The Hardhat project will attempt to auto-fund any newly deployed contract that uses Any-API or VRF, which otherwise has to be done manually.
@@ -105,7 +109,7 @@ The amount in LINK to send as part of this process can be modified in this [Hard
0 commit comments