mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-04-29 22:37:52 +00:00
Fixed SEND_COIN issue
This commit is contained in:
parent
48fff83732
commit
2d276d583f
@ -614,13 +614,13 @@ class WebBrowser extends LitElement {
|
|||||||
|
|
||||||
if (isAddress) {
|
if (isAddress) {
|
||||||
let myTransaction = await makeTransactionRequest(recipient, lastRef);
|
let myTransaction = await makeTransactionRequest(recipient, lastRef);
|
||||||
getTxnRequestResponse(myTransaction);
|
return getTxnRequestResponse(myTransaction);
|
||||||
} else {
|
} else {
|
||||||
let myNameRes = await validateName(recipient);
|
let myNameRes = await validateName(recipient);
|
||||||
if (myNameRes !== false) {
|
if (myNameRes !== false) {
|
||||||
let myNameAddress = myNameRes.owner
|
let myNameAddress = myNameRes.owner
|
||||||
let myTransaction = await makeTransactionRequest(myNameAddress, lastRef)
|
let myTransaction = await makeTransactionRequest(myNameAddress, lastRef)
|
||||||
getTxnRequestResponse(myTransaction)
|
return getTxnRequestResponse(myTransaction)
|
||||||
} else {
|
} else {
|
||||||
console.error(`${translate("chatpage.cchange54")}`)
|
console.error(`${translate("chatpage.cchange54")}`)
|
||||||
parentEpml.request('showSnackBar', `${translate("chatpage.cchange54")}`)
|
parentEpml.request('showSnackBar', `${translate("chatpage.cchange54")}`)
|
||||||
@ -686,7 +686,17 @@ class WebBrowser extends LitElement {
|
|||||||
throw new Error(txnResponse);
|
throw new Error(txnResponse);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
validateReceiver(recipient);
|
try {
|
||||||
|
const result = await validateReceiver(recipient);
|
||||||
|
if (result) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
} catch (error) {
|
||||||
|
console.error(error);
|
||||||
|
return '{"error": "Request could not be fulfilled"}';
|
||||||
|
} finally {
|
||||||
|
console.log("Case completed.");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user