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
To interact with a live or test network, you will need ETH and LINK token by following these steps:
127
127
128
-
1. Get some Goerli Testnet ETH and LINK
128
+
1. Get some Sepolia Testnet ETH and LINK
129
129
130
130
Head over to the [Chainlink faucets](https://faucets.chain.link/) and get some ETH and LINK. Please follow [the chainlink documentation](https://docs.chain.link/docs/acquire-link/) if unfamiliar.
131
131
132
132
4. Create VRF V2 subscription
133
133
134
-
Head over to [VRF Subscription Page](https://vrf.chain.link/goerli) and create the new subscription. Save your subscription ID and place it in your `helper-truffle-config.js` under `subId`.
134
+
Head over to [VRF Subscription Page](https://vrf.chain.link/sepolia) and create the new subscription. Save your subscription ID and place it in your `helper-truffle-config.js` under `subId`.
135
135
136
136
### Truffle Dashboard
137
137
@@ -153,15 +153,15 @@ In some cases, you might want your transactions to be automatically signed. In w
153
153
2. A private key
154
154
3. ETH & LINK token (either testnet or real)
155
155
156
-
Let's look at an example of setting these up using the Goerli testnet.
156
+
Let's look at an example of setting these up using the Sepolia testnet.
157
157
158
-
### Goerli Ethereum Testnet Setup
158
+
### Sepolia Ethereum Testnet Setup
159
159
160
160
First, we will need to set environment variables. We can do so by setting them in our `.env` file (create it if it's not there). You can also read more about [environment variables](https://www.twilio.com/blog/2017/01/how-to-set-environment-variables.html) from the linked twilio blog. You'll find a sample of what this file will look like in `.env.example`
161
161
162
162
> IMPORTANT: MAKE SURE YOU'D DONT EXPOSE THE KEYS YOU PUT IN THIS `.env` FILE. By that, I mean don't push them to a public repo, and please try to keep them keys you use in development not associated with any real funds.
163
163
164
-
1. Set your `GOERLI_RPC_URL`[environment variable.](https://www.twilio.com/blog/2017/01/how-to-set-environment-variables.html)
164
+
1. Set your `SEPOLIA_RPC_URL`[environment variable.](https://www.twilio.com/blog/2017/01/how-to-set-environment-variables.html)
165
165
166
166
You can get one for free from [Infura](https://infura.io/), [Alchemy](https://www.alchemy.com/), or [Moralis](https://moralis.io/speedy-nodes/). This is your connection to the blockchain.
167
167
@@ -177,23 +177,23 @@ Don't commit and push any changes to .env files that may contain sensitive infor
For other networks like mainnet and polygon, you can use different environment variables for your RPC URL and your private key. See the `truffle-config.js` to learn more.
190
190
191
-
Uncomment the `goerli` network in your `truffle-config`. You should now be all setup! You can run any command and just pass the `--network goerli` now!
191
+
Uncomment the `sepolia` network in your `truffle-config`. You should now be all setup! You can run any command and just pass the `--network sepolia` now!
192
192
193
193
To deploy all contracts:
194
194
195
195
```
196
-
truffle migrate --network goerli
196
+
truffle migrate --network sepolia
197
197
```
198
198
199
199
# Test
@@ -252,7 +252,7 @@ You can deploy just the VRF Consumer with:
252
252
truffle deploy --f 5 --to 5 --network <NETWORK>
253
253
```
254
254
255
-
After deployment, you'll need to add your contract address to your subscription. Head over to [vrf.chain.link](https://vrf.chain.link/goerli/new) and add your consumer.
255
+
After deployment, you'll need to add your contract address to your subscription. Head over to [vrf.chain.link](https://vrf.chain.link/sepolia/new) and add your consumer.
256
256
257
257
Then, run the following:
258
258
@@ -268,7 +268,7 @@ The Keepers Consumer contract has one script, to check the upkeep. After deploym
0 commit comments