client: Rename flag ark-url into asp-url (#234)

This commit is contained in:
Marco Argentieri
2024-08-09 17:08:17 +02:00
committed by GitHub
parent a8ed0bf6a4
commit ff28f00730
5 changed files with 6 additions and 6 deletions

View File

@@ -26,13 +26,13 @@ var explorerUrls = map[string]string{
func (c *covenantLiquidCLI) Init(ctx *cli.Context) error {
key := ctx.String("prvkey")
net := strings.ToLower(ctx.String("network"))
url := ctx.String("ark-url")
url := ctx.String("asp-url")
explorer := ctx.String("explorer")
var explorerURL string
if len(url) <= 0 {
return fmt.Errorf("invalid ark url")
return fmt.Errorf("invalid asp-url")
}
if net != common.Liquid.Name && net != common.LiquidTestNet.Name && net != common.LiquidRegTest.Name {
return fmt.Errorf("invalid network")

View File

@@ -23,7 +23,7 @@ var explorerUrls = map[string]string{
func (c *clArkBitcoinCLI) Init(ctx *cli.Context) error {
key := ctx.String("prvkey")
net := strings.ToLower(ctx.String("network"))
url := ctx.String("ark-url")
url := ctx.String("asp-url")
explorer := ctx.String("explorer")
var explorerURL string

View File

@@ -45,7 +45,7 @@ var (
Value: "liquid",
}
UrlFlag = cli.StringFlag{
Name: "ark-url",
Name: "asp-url",
Usage: "the url of the ASP to connect to",
Required: true,
}

View File

@@ -35,7 +35,7 @@ func TestMain(m *testing.M) {
time.Sleep(3 * time.Second)
_, err = runArkCommand("init", "--ark-url", "localhost:8080", "--password", utils.Password, "--network", common.LiquidRegTest.Name, "--explorer", "http://chopsticks-liquid:3000")
_, err = runArkCommand("init", "--asp-url", "localhost:8080", "--password", utils.Password, "--network", common.LiquidRegTest.Name, "--explorer", "http://chopsticks-liquid:3000")
if err != nil {
fmt.Printf("error initializing ark config: %s", err)
os.Exit(1)

View File

@@ -34,7 +34,7 @@ func TestMain(m *testing.M) {
time.Sleep(3 * time.Second)
_, err = runClarkCommand("init", "--ark-url", "localhost:6000", "--password", utils.Password, "--network", "regtest", "--explorer", "http://chopsticks:3000")
_, err = runClarkCommand("init", "--asp-url", "localhost:6000", "--password", utils.Password, "--network", "regtest", "--explorer", "http://chopsticks:3000")
if err != nil {
fmt.Printf("error initializing ark config: %s", err)
os.Exit(1)