fix: .env WALLETS and not ADDRESS

This commit is contained in:
upong 2023-04-04 11:52:04 +02:00
parent e8945b7c1e
commit 9697d5a5ff
3 changed files with 4 additions and 6 deletions

View File

@ -1,2 +1,2 @@
NETWORK=testnet NETWORK=testnet
ADDRESS=WALLET1,WALLET2 WALLETS=WALLET1,WALLET2

View File

@ -10,15 +10,13 @@
Copy the `.env.example` file and rename it to `.env`. Fill the variables with your own values. 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 ```env
NETWORK={network} NETWORK={network}
WALLET={wallet1},{wallet2},{wallet3},... WALLETS={wallet1},{wallet2},{wallet3},...
``` ```
NETWORK can be `devnet` or `testnet`. 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 ## Run

View File

@ -18,7 +18,7 @@ func main() {
godotenv.Load() //nolint:errcheck godotenv.Load() //nolint:errcheck
wallets := strings.Split(os.Getenv("ADDRESS"), ",") wallets := strings.Split(os.Getenv("WALLETS"), ",")
for _, w := range wallets { for _, w := range wallets {
go run(w) go run(w)