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 // The address lookup was successful which means there is further
// information about it available and it is "mine". // information about it available and it is "mine".
result.IsMine = true result.IsMine = true
acctName, err := w.AccountName( acctName, err := w.AccountName(ainfo.InternalAccount())
waddrmgr.KeyScopeBIP0044, ainfo.InternalAccount(),
)
if err != nil { if err != nil {
return nil, &ErrAccountNameNotFound return nil, &ErrAccountNameNotFound
} }