From cd49e978f9dda3605ca7401b0030254a523ffbf5 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Tue, 23 Oct 2018 11:46:43 -0700 Subject: [PATCH] Make "multi" const --- client/keys/show.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/keys/show.go b/client/keys/show.go index 6c1c97c224..a922cf3ac3 100644 --- a/client/keys/show.go +++ b/client/keys/show.go @@ -23,7 +23,8 @@ const ( // FlagBechPrefix defines a desired Bech32 prefix encoding for a key. FlagBechPrefix = "bech" - flagMultiSigThreshold = "multisig-threshold" + flagMultiSigThreshold = "multisig-threshold" + defaultMultiSigKeyName = "multi" ) var _ keys.Info = (keys.Info)(nil) @@ -80,7 +81,7 @@ func runShowCmd(cmd *cobra.Command, args []string) (err error) { } multikey := multisig.NewPubKeyMultisigThreshold(multisigThreshold, pks) info = multiSigKey{ - name: "multi", + name: defaultMultiSigKeyName, key: multikey, } }