Skip to content

Commit 8aafe91

Browse files
committed
allow update farm with stellar address
1 parent 096e46c commit 8aafe91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

registrar-cli/cmd/farm_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func init() {
5858
farmUpdateCmd.Flags().StringP("mnemonic", "m", "", "account mnemonic")
5959
farmUpdateCmd.Flags().Uint64P("farm-id", "i", 0, "farm id")
6060
farmUpdateCmd.Flags().String("farm-name", "", "new farm name")
61-
farmUpdateCmd.MarkFlagsRequiredTogether("mnemonic", "farm-id", "farm-name")
61+
farmUpdateCmd.MarkFlagsRequiredTogether("mnemonic", "farm-id")
6262

6363
farmUpdateCmd.Flags().StringP("stellar-address", "s", "", "stellar address")
6464
farmUpdateCmd.Flags().BoolP("dedicated", "d", false, "farm is dedicated")

registrar-cli/internal/cmd/farm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func UpdateFarm(farmID uint64, mnemonic, network, farmName, stellarAddress strin
6868
opts = append(opts, client.UpdateFarmWithDedicated())
6969
}
7070
if len(stellarAddress) != 0 {
71-
// opts = append(opts, client.Updfarm)
71+
opts = append(opts, client.UpdateFarmWithStellarAddress(stellarAddress))
7272
}
7373

7474
return cli.UpdateFarm(farmID, opts...)

0 commit comments

Comments
 (0)