multi-account: update getaccount

This commit is contained in:
Roy Lee 2022-08-22 11:42:08 -07:00
parent 608e4dddb5
commit 09ec547ed6

View file

@ -691,7 +691,7 @@ func getAccount(icmd interface{}, w *wallet.Wallet) (interface{}, error) {
return nil, &ErrAddressNotInWallet
}
acctName, err := w.AccountName(waddrmgr.KeyScopeBIP0044, account)
acctName, err := w.AccountName(account)
if err != nil {
return nil, &ErrAccountNameNotFound
}