Allow use of pubkey

This commit is contained in:
Jim McDonald
2020-05-01 15:35:57 +01:00
parent e5481f9074
commit 693b2a6961
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ var versionCmd = &cobra.Command{
ethdo version.`,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("1.4.6")
fmt.Println("1.4.7")
if viper.GetBool("verbose") {
buildInfo, ok := dbg.ReadBuildInfo()
if ok {

View File

@@ -33,7 +33,7 @@ func NewScratchAccount(privKey []byte, pubKey []byte) (*ScratchAccount, error) {
if len(privKey) > 0 {
return newScratchAccountFromPrivKey(privKey)
} else {
return newScratchAccountFromPubKey(privKey)
return newScratchAccountFromPubKey(pubKey)
}
}