Fix clash w/ liquid unblinding and vin/vout syntax
This commit is contained in:
parent
eb2abefabc
commit
2c1f38aa9d
@ -126,9 +126,13 @@ export class LiquidUnblinding {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async checkUnblindedTx(tx: Transaction) {
|
async checkUnblindedTx(tx: Transaction) {
|
||||||
const windowLocationHash = window.location.hash.substring('#blinded='.length);
|
if (!window.location.hash?.length) {
|
||||||
if (windowLocationHash.length > 0) {
|
return tx;
|
||||||
const blinders = this.parseBlinders(windowLocationHash);
|
}
|
||||||
|
const fragmentParams = new URLSearchParams(window.location.hash.slice(1) || '');
|
||||||
|
const blinderStr = fragmentParams.get('blinded');
|
||||||
|
if (blinderStr && blinderStr.length) {
|
||||||
|
const blinders = this.parseBlinders(blinderStr);
|
||||||
if (blinders) {
|
if (blinders) {
|
||||||
this.commitments = await this.makeCommitmentMap(blinders);
|
this.commitments = await this.makeCommitmentMap(blinders);
|
||||||
return this.tryUnblindTx(tx);
|
return this.tryUnblindTx(tx);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user