OSDN Git Service

fix delete key failed
authorlbqds <lbqds@outlook.com>
Fri, 13 Apr 2018 06:02:35 +0000 (14:02 +0800)
committerlbqds <lbqds@outlook.com>
Fri, 13 Apr 2018 06:02:35 +0000 (14:02 +0800)
cmd/bytomcli/commands/key.go

index cb9a8f2..61f0dcc 100644 (file)
@@ -46,7 +46,7 @@ var deleteKeyCmd = &cobra.Command{
 
                var key = struct {
                        Password string
-                       XPub     chainkd.XPub `json:"xpubs"`
+                       XPub     chainkd.XPub `json:"xpub"`
                }{XPub: *xpub, Password: args[1]}
 
                if _, exitCode := util.ClientCall("/delete-key", &key); exitCode != util.Success {