multi-account: update validateaddress

This commit is contained in:
Roy Lee 2022-08-22 18:21:20 -07:00
parent 03256c049b
commit c42e8a0705

View file

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