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).
This commit is contained in:
parent
391f4eabb3
commit
3008fae6b3
@ -245,14 +245,12 @@ class WebBrowser extends LitElement {
|
|||||||
console.log("UI received event: " + JSON.stringify(data));
|
console.log("UI received event: " + JSON.stringify(data));
|
||||||
|
|
||||||
switch (data.action) {
|
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
|
// For now, we will return this without prompting the user, but we may need to add a prompt later
|
||||||
response = this.selectedAddress.address;
|
let account = {};
|
||||||
break;
|
account["address"] = this.selectedAddress.address;
|
||||||
|
account["publicKey"] = this.selectedAddress.base58PublicKey;
|
||||||
case "GET_ACCOUNT_PUBLIC_KEY":
|
response = JSON.stringify(account);
|
||||||
// For now, we will return this without prompting the user, but we may need to add a prompt later
|
|
||||||
response = this.selectedAddress.base58PublicKey;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "PUBLISH_QDN_RESOURCE":
|
case "PUBLISH_QDN_RESOURCE":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user