From c42e8a0705e0d333943b0775d169c54f695c3134 Mon Sep 17 00:00:00 2001 From: Roy Lee Date: Mon, 22 Aug 2022 18:21:20 -0700 Subject: [PATCH] multi-account: update validateaddress --- rpc/legacyrpc/methods.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/rpc/legacyrpc/methods.go b/rpc/legacyrpc/methods.go index f59fa9e..66e5876 100644 --- a/rpc/legacyrpc/methods.go +++ b/rpc/legacyrpc/methods.go @@ -2021,9 +2021,7 @@ func validateAddress(icmd interface{}, w *wallet.Wallet) (interface{}, error) { // The address lookup was successful which means there is further // information about it available and it is "mine". result.IsMine = true - acctName, err := w.AccountName( - waddrmgr.KeyScopeBIP0044, ainfo.InternalAccount(), - ) + acctName, err := w.AccountName(ainfo.InternalAccount()) if err != nil { return nil, &ErrAccountNameNotFound }