Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaolou86 committed Oct 18, 2023
1 parent ccd893e commit 941768d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/addresses-tools/src/addresses.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down Expand Up @@ -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"));

Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 941768d

Please sign in to comment.