From 9697d5a5ff7fda374004d7c183b37680c0c53e6a Mon Sep 17 00:00:00 2001 From: upong Date: Tue, 4 Apr 2023 11:52:04 +0200 Subject: [PATCH 1/2] fix: .env WALLETS and not ADDRESS --- .env.example | 2 +- README.md | 6 ++---- main.go | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index 77cf581..478c1d2 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1,2 @@ NETWORK=testnet -ADDRESS=WALLET1,WALLET2 +WALLETS=WALLET1,WALLET2 diff --git a/README.md b/README.md index 2dc52aa..e59b28f 100644 --- a/README.md +++ b/README.md @@ -10,15 +10,13 @@ Copy the `.env.example` file and rename it to `.env`. Fill the variables with your own values. -Don't forget to put `,` between the wallets. - ```env NETWORK={network} -WALLET={wallet1},{wallet2},{wallet3},... +WALLETS={wallet1},{wallet2},{wallet3},... ``` NETWORK can be `devnet` or `testnet`. -WALLET is your wallet address. +WALLETS is your wallet address. Don't forget to put `,` between the wallets. ## Run diff --git a/main.go b/main.go index be5ee6b..f8a62c7 100644 --- a/main.go +++ b/main.go @@ -18,7 +18,7 @@ func main() { godotenv.Load() //nolint:errcheck - wallets := strings.Split(os.Getenv("ADDRESS"), ",") + wallets := strings.Split(os.Getenv("WALLETS"), ",") for _, w := range wallets { go run(w) -- 2.47.2 From b16badecb599515b37c72698ca6db5a557a560fe Mon Sep 17 00:00:00 2001 From: upong Date: Tue, 4 Apr 2023 11:54:35 +0200 Subject: [PATCH 2/2] docs: add list --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e59b28f..391443d 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ NETWORK={network} WALLETS={wallet1},{wallet2},{wallet3},... ``` -NETWORK can be `devnet` or `testnet`. -WALLETS is your wallet address. Don't forget to put `,` between the wallets. +- NETWORK can be `devnet` or `testnet`. +- WALLETS is your wallet address. Don't forget to put `,` between the wallets. ## Run -- 2.47.2