Skip to content

Commit

Permalink
update dev faucet URL
Browse files Browse the repository at this point in the history
Signed-off-by: p4u <[email protected]>
  • Loading branch information
p4u committed Oct 23, 2023
1 parent 2c357eb commit 687ef7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions apiclient/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion apiclient/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
"",
)
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 687ef7b

Please sign in to comment.