From 941768dfd1c638bfc96d8e860d1dfbbd451fbca1 Mon Sep 17 00:00:00 2001 From: xiaolou86 <20718693+xiaolou86@users.noreply.github.com> Date: Wed, 18 Oct 2023 17:28:29 +0800 Subject: [PATCH] Fix typos --- packages/addresses-tools/src/addresses.helpers.ts | 4 ++-- packages/zevm-app-contracts/scripts/zeta-swap/stress-swap.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/addresses-tools/src/addresses.helpers.ts b/packages/addresses-tools/src/addresses.helpers.ts index dd7b33b3..9f61005c 100644 --- a/packages/addresses-tools/src/addresses.helpers.ts +++ b/packages/addresses-tools/src/addresses.helpers.ts @@ -160,7 +160,7 @@ export const saveAddress = (addressName: ZetaAddress, newAddress: string) => { }; export const addNewAddress = (addressName: string, addressValue: string = "") => { - if (!addressName) throw new Error("Emtpy address name."); + if (!addressName) throw new Error("Empty address name."); const addressesDirname = join(dirname, `./`); const addressesFiles = readdirSync(addressesDirname).filter(fileName => fileName.includes(".json")); @@ -189,7 +189,7 @@ export const addNewAddress = (addressName: string, addressValue: string = "") => }; export const addNewNetwork = (newNetworkName: string, addTo: ZetaNetworkName[]) => { - if (!newNetworkName) throw new Error("Emtpy networkName name."); + if (!newNetworkName) throw new Error("Empty networkName name."); const addressesDirname = join(dirname, `./`); const addressesFiles = readdirSync(addressesDirname).filter(fileName => fileName.includes(".json")); diff --git a/packages/zevm-app-contracts/scripts/zeta-swap/stress-swap.ts b/packages/zevm-app-contracts/scripts/zeta-swap/stress-swap.ts index 3c55596b..41c09b40 100644 --- a/packages/zevm-app-contracts/scripts/zeta-swap/stress-swap.ts +++ b/packages/zevm-app-contracts/scripts/zeta-swap/stress-swap.ts @@ -1,6 +1,6 @@ /* ********************************* */ /* How to run this script -/* To run this script you have to setup the enviroment (yarn and setup .env) and run this command +/* To run this script you have to setup the environment (yarn and setup .env) and run this command /* ZETA_NETWORK=athens npx hardhat run scripts/zeta-swap/stress-swap.ts --network "polygon-mumbai" /* In the example we use "polygon-mumbai", that's the source network. Can be any valid source network /* Be sure to have enough gas tokens to pay all the tx