From e0d2b2331da282c5b997c14e3bcbbdd8987cd620 Mon Sep 17 00:00:00 2001 From: codemaestro64 Date: Sun, 24 May 2020 13:16:16 +0100 Subject: [PATCH] fix unknown variable issue --- multiwallet.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/multiwallet.go b/multiwallet.go index 459abd15..af283e61 100644 --- a/multiwallet.go +++ b/multiwallet.go @@ -407,14 +407,12 @@ func (mw *MultiWallet) saveNewWallet(wallet *Wallet, setupWallet func() error) ( return nil, errors.New(ErrExist) } - // check if wallet with same seed already exists - err = mw.checkForSeedClash(encryptedSeed) + err = mw.checkForSeedClash(wallet.EncryptedSeed) if err != nil { return nil, err } - if mw.IsConnectedToDecredNetwork() { mw.CancelSync() defer mw.SpvSync()