Explicitly call wallet function for Wallet var.
This change makes it more explicit that the function being called is for an account's embedded *wallet.Wallet and not an account function.
This commit is contained in:
parent
55882173a2
commit
30aff3a468
1 changed files with 1 additions and 1 deletions
|
@ -419,7 +419,7 @@ func (a *Account) ImportWIFPrivateKey(wif string, bs *wallet.BlockStamp) (string
|
|||
|
||||
// Attempt to import private key into wallet.
|
||||
a.mtx.Lock()
|
||||
addr, err := a.ImportPrivateKey(privkey, compressed, bs)
|
||||
addr, err := a.Wallet.ImportPrivateKey(privkey, compressed, bs)
|
||||
if err != nil {
|
||||
a.mtx.Unlock()
|
||||
return "", err
|
||||
|
|
Loading…
Reference in a new issue