Skip to content

Commit

Permalink
🧹 Take RPC URLs from environment in examples (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
janjakubnanista authored Mar 18, 2024
1 parent f8c9fd1 commit a5c185f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions .changeset/fair-cars-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@layerzerolabs/oapp-example": patch
"@layerzerolabs/oft-example": patch
---

Take RPC URLs from the environment in the examples
6 changes: 3 additions & 3 deletions examples/oapp/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ const config: HardhatUserConfig = {
networks: {
sepolia: {
eid: EndpointId.SEPOLIA_V2_TESTNET,
url: 'https://rpc.sepolia.org/',
url: process.env.RPC_URL_SEPOLIA || 'https://rpc.sepolia.org/',
accounts,
},
fuji: {
eid: EndpointId.AVALANCHE_V2_TESTNET,
url: 'https://rpc.ankr.com/avalanche_fuji',
url: process.env.RPC_URL_FUJI || 'https://rpc.ankr.com/avalanche_fuji',
accounts,
},
mumbai: {
eid: EndpointId.POLYGON_V2_TESTNET,
url: 'https://rpc.ankr.com/polygon_mumbai',
url: process.env.RPC_URL_MUMBAI || 'https://rpc.ankr.com/polygon_mumbai',
accounts,
},
},
Expand Down
6 changes: 3 additions & 3 deletions examples/oft/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,17 @@ const config: HardhatUserConfig = {
networks: {
sepolia: {
eid: EndpointId.SEPOLIA_V2_TESTNET,
url: 'https://rpc.sepolia.org/',
url: process.env.RPC_URL_SEPOLIA || 'https://rpc.sepolia.org/',
accounts,
},
fuji: {
eid: EndpointId.AVALANCHE_V2_TESTNET,
url: 'https://rpc.ankr.com/avalanche_fuji',
url: process.env.RPC_URL_FUJI || 'https://rpc.ankr.com/avalanche_fuji',
accounts,
},
mumbai: {
eid: EndpointId.POLYGON_V2_TESTNET,
url: 'https://rpc.ankr.com/polygon_mumbai',
url: process.env.RPC_URL_MUMBAI || 'https://rpc.ankr.com/polygon_mumbai',
accounts,
},
},
Expand Down

0 comments on commit a5c185f

Please sign in to comment.