We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
liquidnetwork:
1 parent 0af3aca commit 6f252e5Copy full SHA for 6f252e5
client/src/util.js
@@ -8,6 +8,7 @@ import { nativeAssetId } from './const'
8
const BLIND_PREFIX = +process.env.BLIND_PREFIX || 0x0c
9
, reHash256 = /^[a-f0-9]{64}$/i
10
, reBech32 = /^[a-z]{1,83}1[ac-hj-np-z02-9]{6,100}$/
11
+ , qrPrefix = process.env.IS_ELEMENTS ? 'liquidnetwork' : 'bitcoin'
12
13
// not null or undefined
14
export const notNully = x => x != null
@@ -87,7 +88,7 @@ export const processGoAddr =
87
88
}
89
90
export const makeAddressQR = addr => {
- let qrstr = `bitcoin:${addr}`
91
+ let qrstr = `${qrPrefix}:${addr}`
92
return qrcode.toDataURL(
93
// upper-case bech32 addresses to enable the compact qr encoding mode
94
reBech32.test(addr) ? qrstr.toUpperCase() : qrstr
0 commit comments