Skip to content

Commit

Permalink
accounts/scwallet: fix crypto API change
Browse files Browse the repository at this point in the history
  • Loading branch information
karalabe committed Jun 16, 2018
1 parent 479b09a commit 7f0a28e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion accounts/scwallet/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,11 @@ func (s *Session) derive(path accounts.DerivationPath) (accounts.Account, error)
return accounts.Account{}, err
}
}
return s.Wallet.makeAccount(crypto.PubkeyToAddress(*crypto.ToECDSAPub(pubkey)), path), nil
pub, err := crypto.UnmarshalPubkey(pubkey)
if err != nil {
return accounts.Account{}, err
}
return s.Wallet.makeAccount(crypto.PubkeyToAddress(*pub), path), nil
}

// keyDerivationInfo contains information on the current key derivation step.
Expand Down

0 comments on commit 7f0a28e

Please sign in to comment.