forked from Qortal/qortal-ui
Added ARRR to GET_WALLET_ADDRESS
This commit is contained in:
parent
c9e70ce7cd
commit
6aad0b6e37
@ -271,7 +271,7 @@ class WebBrowser extends LitElement {
|
|||||||
const name = parts[0]
|
const name = parts[0]
|
||||||
parts.shift()
|
parts.shift()
|
||||||
let identifier
|
let identifier
|
||||||
|
let path
|
||||||
if (parts.length > 0) {
|
if (parts.length > 0) {
|
||||||
identifier = parts[0] // Do not shift yet
|
identifier = parts[0] // Do not shift yet
|
||||||
// Check if a resource exists with this service, name and identifier combination
|
// Check if a resource exists with this service, name and identifier combination
|
||||||
@ -2319,7 +2319,14 @@ class WebBrowser extends LitElement {
|
|||||||
if (res3.action === 'accept') {
|
if (res3.action === 'accept') {
|
||||||
let coin = data.coin;
|
let coin = data.coin;
|
||||||
let userWallet = {};
|
let userWallet = {};
|
||||||
|
let arrrAddress = "";
|
||||||
|
if (coin === "ARRR") {
|
||||||
|
arrrAddress = await parentEpml.request('apiCall', {
|
||||||
|
url: `/crosschain/arrr/walletaddress?apiKey=${this.getApiKey()}`,
|
||||||
|
method: 'POST',
|
||||||
|
body: `${window.parent.reduxStore.getState().app.selectedAddress.arrrWallet.seed58}`
|
||||||
|
})
|
||||||
|
}
|
||||||
switch (coin) {
|
switch (coin) {
|
||||||
case 'QORT':
|
case 'QORT':
|
||||||
userWallet['address'] = window.parent.reduxStore.getState().app.selectedAddress.address
|
userWallet['address'] = window.parent.reduxStore.getState().app.selectedAddress.address
|
||||||
@ -2346,6 +2353,7 @@ class WebBrowser extends LitElement {
|
|||||||
userWallet['publickey'] = window.parent.reduxStore.getState().app.selectedAddress.rvnWallet.derivedMasterPublicKey
|
userWallet['publickey'] = window.parent.reduxStore.getState().app.selectedAddress.rvnWallet.derivedMasterPublicKey
|
||||||
break
|
break
|
||||||
case 'ARRR':
|
case 'ARRR':
|
||||||
|
userWallet['address'] = arrrAddress
|
||||||
break
|
break
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user