multi-account: update validateaddress
This commit is contained in:
parent
03256c049b
commit
c42e8a0705
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue