From 7c4b031025929ab7a834324d3eb3710ef517683c Mon Sep 17 00:00:00 2001 From: Ryan Goulding Date: Mon, 22 Jul 2024 17:23:46 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=AA=B2=20network=20names=20should=20have?= =?UTF-8?q?=20"-testnet"=20suffix=20in=20examples=20(#741)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ryan Goulding --- .changeset/young-laws-burn.md | 8 ++++++++ examples/oapp/hardhat.config.ts | 6 +++--- examples/oft-adapter/hardhat.config.ts | 6 +++--- examples/oft/hardhat.config.ts | 6 +++--- examples/onft721/hardhat.config.ts | 6 +++--- 5 files changed, 20 insertions(+), 12 deletions(-) create mode 100644 .changeset/young-laws-burn.md diff --git a/.changeset/young-laws-burn.md b/.changeset/young-laws-burn.md new file mode 100644 index 000000000..52ee0395b --- /dev/null +++ b/.changeset/young-laws-burn.md @@ -0,0 +1,8 @@ +--- +"@layerzerolabs/oft-adapter-example": patch +"@layerzerolabs/onft721-example": patch +"@layerzerolabs/oapp-example": patch +"@layerzerolabs/oft-example": patch +--- + +Fix network name suffix in examples diff --git a/examples/oapp/hardhat.config.ts b/examples/oapp/hardhat.config.ts index ead58048f..4fa8e41d2 100644 --- a/examples/oapp/hardhat.config.ts +++ b/examples/oapp/hardhat.config.ts @@ -52,17 +52,17 @@ const config: HardhatUserConfig = { ], }, networks: { - sepolia: { + 'sepolia-testnet': { eid: EndpointId.SEPOLIA_V2_TESTNET, url: process.env.RPC_URL_SEPOLIA || 'https://rpc.sepolia.org/', accounts, }, - fuji: { + 'fuji-testnet': { eid: EndpointId.AVALANCHE_V2_TESTNET, url: process.env.RPC_URL_FUJI || 'https://rpc.ankr.com/avalanche_fuji', accounts, }, - amoy: { + 'amoy-testnet': { eid: EndpointId.AMOY_V2_TESTNET, url: process.env.RPC_URL_AMOY || 'https://polygon-amoy-bor-rpc.publicnode.com', accounts, diff --git a/examples/oft-adapter/hardhat.config.ts b/examples/oft-adapter/hardhat.config.ts index 200c314ef..13610f1de 100644 --- a/examples/oft-adapter/hardhat.config.ts +++ b/examples/oft-adapter/hardhat.config.ts @@ -54,7 +54,7 @@ const config: HardhatUserConfig = { ], }, networks: { - sepolia: { + 'sepolia-testnet': { eid: EndpointId.SEPOLIA_V2_TESTNET, url: process.env.RPC_URL_SEPOLIA || 'https://rpc.sepolia.org/', accounts, @@ -62,12 +62,12 @@ const config: HardhatUserConfig = { tokenAddress: '0x0', // Set the token address for the OFT adapter }, }, - fuji: { + 'fuji-testnet': { eid: EndpointId.AVALANCHE_V2_TESTNET, url: process.env.RPC_URL_FUJI || 'https://rpc.ankr.com/avalanche_fuji', accounts, }, - amoy: { + 'amoy-testnet': { eid: EndpointId.AMOY_V2_TESTNET, url: process.env.RPC_URL_AMOY || 'https://polygon-amoy-bor-rpc.publicnode.com', accounts, diff --git a/examples/oft/hardhat.config.ts b/examples/oft/hardhat.config.ts index ead58048f..4fa8e41d2 100644 --- a/examples/oft/hardhat.config.ts +++ b/examples/oft/hardhat.config.ts @@ -52,17 +52,17 @@ const config: HardhatUserConfig = { ], }, networks: { - sepolia: { + 'sepolia-testnet': { eid: EndpointId.SEPOLIA_V2_TESTNET, url: process.env.RPC_URL_SEPOLIA || 'https://rpc.sepolia.org/', accounts, }, - fuji: { + 'fuji-testnet': { eid: EndpointId.AVALANCHE_V2_TESTNET, url: process.env.RPC_URL_FUJI || 'https://rpc.ankr.com/avalanche_fuji', accounts, }, - amoy: { + 'amoy-testnet': { eid: EndpointId.AMOY_V2_TESTNET, url: process.env.RPC_URL_AMOY || 'https://polygon-amoy-bor-rpc.publicnode.com', accounts, diff --git a/examples/onft721/hardhat.config.ts b/examples/onft721/hardhat.config.ts index ead58048f..4fa8e41d2 100644 --- a/examples/onft721/hardhat.config.ts +++ b/examples/onft721/hardhat.config.ts @@ -52,17 +52,17 @@ const config: HardhatUserConfig = { ], }, networks: { - sepolia: { + 'sepolia-testnet': { eid: EndpointId.SEPOLIA_V2_TESTNET, url: process.env.RPC_URL_SEPOLIA || 'https://rpc.sepolia.org/', accounts, }, - fuji: { + 'fuji-testnet': { eid: EndpointId.AVALANCHE_V2_TESTNET, url: process.env.RPC_URL_FUJI || 'https://rpc.ankr.com/avalanche_fuji', accounts, }, - amoy: { + 'amoy-testnet': { eid: EndpointId.AMOY_V2_TESTNET, url: process.env.RPC_URL_AMOY || 'https://polygon-amoy-bor-rpc.publicnode.com', accounts,