Skip to content

Commit 1710ffa

Browse files
author
li
committed
remove spend
1 parent aa2eaf0 commit 1710ffa

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

cli/output.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ var safeOutputsCmdCli = &cli.Command{
1616
Name: "keystore,k",
1717
Usage: "keystore download from https://developers.mixin.one/dashboard",
1818
},
19-
&cli.StringFlag{
20-
Name: "spend,s",
21-
Usage: "spend",
22-
},
2319
&cli.StringFlag{
2420
Name: "asset,a",
2521
Usage: "asset",
@@ -29,11 +25,9 @@ var safeOutputsCmdCli = &cli.Command{
2925

3026
func safeOutputsCmd(c *cli.Context) error {
3127
keystore := c.String("keystore")
32-
spend := c.String("spend")
3328
asset := c.String("asset")
3429

3530
su := loadKeystore(keystore)
36-
su.SpendPrivateKey = spend
3731

3832
hash := bot.HashMembers([]string{su.UserId})
3933
outputs, err := bot.ListUnspentOutputs(context.Background(), hash, 1, asset, su)
@@ -85,10 +79,6 @@ var assetBalanceCmdCli = &cli.Command{
8579
Name: "keystore,k",
8680
Usage: "keystore download from https://developers.mixin.one/dashboard",
8781
},
88-
&cli.StringFlag{
89-
Name: "spend,s",
90-
Usage: "spend",
91-
},
9282
&cli.StringFlag{
9383
Name: "asset,a",
9484
Usage: "asset",
@@ -98,11 +88,9 @@ var assetBalanceCmdCli = &cli.Command{
9888

9989
func assetBalanceCmd(c *cli.Context) error {
10090
keystore := c.String("keystore")
101-
spend := c.String("spend")
10291
asset := c.String("asset")
10392

10493
su := loadKeystore(keystore)
105-
su.SpendPrivateKey = spend
10694

10795
assets, err := bot.ListAssetWithBalance(context.Background(), su)
10896
if err != nil {

0 commit comments

Comments
 (0)