From 687ef7b2d5a1336dbf0fffab21a87f4472a149d5 Mon Sep 17 00:00:00 2001 From: p4u Date: Mon, 23 Oct 2023 22:13:14 +0200 Subject: [PATCH] update dev faucet URL Signed-off-by: p4u --- apiclient/account.go | 4 +--- apiclient/helpers.go | 2 +- cmd/cli/main.go | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/apiclient/account.go b/apiclient/account.go index 23d64e82b..01c099368 100644 --- a/apiclient/account.go +++ b/apiclient/account.go @@ -17,9 +17,7 @@ import ( const ( // DefaultDevelopmentFaucetURL is the default URL for the development faucet which can be used freely. - DefaultDevelopmentFaucetURL = "https://faucet-azeno.vocdoni.net/faucet/vocdoni/dev/" - // DefaultDevelopmentFaucetToken is the default token for the development faucet which can be used freely. - DefaultDevelopmentFaucetToken = "158a58ba-bd3e-479e-b230-2814a34fae8f" + DefaultDevelopmentFaucetURL = "https://api-dev.faucet.vocdoni.net/v2/open/claim/" ) var ( diff --git a/apiclient/helpers.go b/apiclient/helpers.go index 78c942fbd..b346a6b2d 100644 --- a/apiclient/helpers.go +++ b/apiclient/helpers.go @@ -259,7 +259,7 @@ func (c *HTTPclient) EncryptionKeys(electionID types.HexBytes) ([]api.Key, error func GetFaucetPackageFromDevService(account string) (*models.FaucetPackage, error) { return GetFaucetPackageFromRemoteService( DefaultDevelopmentFaucetURL+account, - DefaultDevelopmentFaucetToken, + "", ) } diff --git a/cmd/cli/main.go b/cmd/cli/main.go index 354ae4c0e..8fb2640bc 100644 --- a/cmd/cli/main.go +++ b/cmd/cli/main.go @@ -308,7 +308,7 @@ func bootStrapAccount(cli *VocdoniCLI) error { infoPrint.Printf("trying to fetch faucet package from remote service...\n") faucetPkg, err = apiclient.GetFaucetPackageFromRemoteService( apiclient.DefaultDevelopmentFaucetURL+cli.api.MyAddress().Hex(), - apiclient.DefaultDevelopmentFaucetToken, + "", ) if err != nil { return err