Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
break line
Browse files Browse the repository at this point in the history
  • Loading branch information
fedekunze committed Mar 12, 2020
1 parent 3988040 commit ff91e3c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/emintcli/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ func getKeybase(transient bool, buf io.Reader) (keys.Keybase, error) {
return keys.NewInMemory(keys.WithKeygenFunc(ethermintKeygenFunc)), nil
}

return keys.NewKeyring(sdk.KeyringServiceName(), viper.GetString(flags.FlagKeyringBackend), viper.GetString(flags.FlagHome), buf, keys.WithKeygenFunc(ethermintKeygenFunc))
return keys.NewKeyring(
sdk.KeyringServiceName(),
viper.GetString(flags.FlagKeyringBackend),
viper.GetString(flags.FlagHome),
buf,
keys.WithKeygenFunc(ethermintKeygenFunc))
}

func runAddCmd(cmd *cobra.Command, args []string) error {
Expand All @@ -72,5 +77,5 @@ func runAddCmd(cmd *cobra.Command, args []string) error {
}

func ethermintKeygenFunc(bz []byte, algo keys.SigningAlgo) (crypto.PrivKey, error) {
return emintCrypto.PrivKeySecp256k1(bz[:]), nil
return emintCrypto.PrivKeySecp256k1(bz), nil
}

0 comments on commit ff91e3c

Please sign in to comment.