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:
Josh Rickmar 2014-01-15 12:33:32 -05:00
parent 55882173a2
commit 30aff3a468

View file

@ -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