good morning!!!!

Skip to content
Snippets Groups Projects
Commit a900e80a authored by Péter Szilágyi's avatar Péter Szilágyi Committed by Guillaume Ballet
Browse files

accounts/scwallet: fix crypto API change

parent 7d5886dc
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment