From 07cf4ad258d5880fdd5f5e9859d75af985c14472 Mon Sep 17 00:00:00 2001 From: 0g-wh Date: Sun, 4 Aug 2024 14:13:11 +0800 Subject: [PATCH] fix cmd/keys --- cmd/0gchaind/keys.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/0gchaind/keys.go b/cmd/0gchaind/keys.go index 3ec6ee0a..f5df216d 100644 --- a/cmd/0gchaind/keys.go +++ b/cmd/0gchaind/keys.go @@ -52,6 +52,13 @@ The pass backend requires GnuPG: https://gnupg.org/ addCmd := keys.AddKeyCommand() addCmd.Flags().Bool(ethFlag, false, "use default evm coin-type (60) and key signing algorithm (\"eth_secp256k1\")") + algoFlag := addCmd.Flag(flags.FlagKeyType) + algoFlag.DefValue = string(hd.EthSecp256k1Type) + err := algoFlag.Value.Set(string(hd.EthSecp256k1Type)) + if err != nil { + panic(err) + } + addCmd.RunE = runAddCmd cmd.AddCommand(