mirror of
				https://github.com/0glabs/0g-chain.git
				synced 2025-11-04 03:17:27 +00:00 
			
		
		
		
	fix cmd/keys
This commit is contained in:
		
							parent
							
								
									cb4e6e006e
								
							
						
					
					
						commit
						07cf4ad258
					
				@ -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(
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user