Merge pull request 'v0.1.2' (#6) from develop into main

Reviewed-on: https://git.enzofoucaud.fr/open-source/sui-faucet-claim/pulls/6
This commit is contained in:
upong 2023-04-04 09:59:54 +00:00
commit cb683820f3
3 changed files with 5 additions and 7 deletions

View File

@ -1,2 +1,2 @@
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.
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.
- NETWORK can be `devnet` or `testnet`.
- WALLETS is your wallet address. Don't forget to put `,` between the wallets.
## Run

View File

@ -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)