From 44732fcb018695e5ccc56bcfbd68fa4db2e201a5 Mon Sep 17 00:00:00 2001 From: CalDescent <> Date: Sun, 29 Jan 2023 13:22:12 +0000 Subject: [PATCH] GET_ACCOUNT_ADDRESS and GET_ACCOUNT_PUBLIC_KEY replaced with a single action: GET_USER_ACCOUNT, as it doesn't make sense to request address and public key separately (they are essentially the same thing). --- .../plugins/core/qdn/browser/browser.src.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js b/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js index 7c8d4570..09f68ac4 100644 --- a/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js +++ b/qortal-ui-plugins/plugins/core/qdn/browser/browser.src.js @@ -245,14 +245,12 @@ class WebBrowser extends LitElement { console.log("UI received event: " + JSON.stringify(data)); switch (data.action) { - case "GET_ACCOUNT_ADDRESS": + case "GET_USER_ACCOUNT": // For now, we will return this without prompting the user, but we may need to add a prompt later - response = this.selectedAddress.address; - break; - - case "GET_ACCOUNT_PUBLIC_KEY": - // For now, we will return this without prompting the user, but we may need to add a prompt later - response = this.selectedAddress.base58PublicKey; + let account = {}; + account["address"] = this.selectedAddress.address; + account["publicKey"] = this.selectedAddress.base58PublicKey; + response = JSON.stringify(account); break; case "PUBLISH_QDN_RESOURCE":