feat: add network for wallet accounts

This commit is contained in:
Vlad Stan
2022-08-03 13:50:07 +03:00
parent 4671954896
commit 6150b767e4
9 changed files with 57 additions and 23 deletions
@@ -47,14 +47,15 @@ const watchOnly = async () => {
showAddress: false,
addressNote: '',
showPayment: false,
fetchedUtxos: false
fetchedUtxos: false,
network: null
}
},
computed: {
mempoolHostname() {
mempoolHostname: function () {
if (!this.config.isLoaded) return
const hostname = new URL(this.config.mempool_endpoint).hostname
if (this.config.network === 'testnet') {
let hostname = new URL(this.config.mempool_endpoint).hostname
if (this.config.network === 'Testnet') {
hostname += '/testnet'
}
return hostname