fix
This commit is contained in:
parent
94024c0693
commit
8f60e81f8e
1 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ export default class SanityChecker {
|
|||
return { type: fullData, data: fullData }
|
||||
} else if (LN_INVOICE_REGEX.test(fullData)) {
|
||||
return { type: 'invoice', data: fullData }
|
||||
} else if (BITCOIN_ADDRESS_REGEX.test(fullData)) {
|
||||
} else if (BITCOIN_ADDRESS_REGEX.test(fullData) || fullData.startsWith("bcrt1")) {
|
||||
return { type: 'address', data: fullData }
|
||||
} else {
|
||||
return { type: 'u2u', data: fullData }
|
||||
|
|
@ -45,7 +45,7 @@ export default class SanityChecker {
|
|||
const [prefix, data] = parts
|
||||
if (prefix === 'routing_fee_refund' || prefix === 'payment_refund') {
|
||||
return { type: prefix, data }
|
||||
} else if (BITCOIN_ADDRESS_REGEX.test(prefix)) {
|
||||
} else if (BITCOIN_ADDRESS_REGEX.test(prefix) || prefix.startsWith("bcrt1")) {
|
||||
return { type: 'address', data: prefix, txHash: data }
|
||||
} else {
|
||||
return { type: 'u2u', data: prefix, serialId: +data }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue