diff --git a/src/app/wallet/send/send.component.ts b/src/app/wallet/send/send.component.ts index d7b0495bf..52a95e7cc 100644 --- a/src/app/wallet/send/send.component.ts +++ b/src/app/wallet/send/send.component.ts @@ -114,7 +114,8 @@ export class SendComponent { /** checkAddres: returns boolean, so it can be private later. */ checkAddress(): boolean { - return this.send.validAddress; + // use default transferBalance address or custom address. + return (this.type === 'balanceTransfer' && !this.send.toAddress) || this.send.validAddress; } /** verifyAddress: calls RPC to validate it. */ @@ -137,13 +138,12 @@ export class SendComponent { } } - // this._rpc.oldCall(this, 'validateaddress', [this.send.toAddress], validateAddressCB); this._rpc.call('validateaddress', [this.send.toAddress]) .subscribe(response => { validateAddressCB(response) }, error => { - this.log.er('errr'); + this.log.er('verifyAddress: validateAddressCB failed'); }); } diff --git a/src/app/wallet/send/send.service.ts b/src/app/wallet/send/send.service.ts index 5a567e2e4..6e8306127 100644 --- a/src/app/wallet/send/send.service.ts +++ b/src/app/wallet/send/send.service.ts @@ -45,7 +45,7 @@ export class SendService { this.rpc_setDefaultAddress_success(response) }, error => { - this.log.er('errr'); + this.log.er('rpc_listDefaultAddress_success: liststealthaddresses failed'); }); } }