@omnisat/lasereyes 0.0.58 → 0.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -2
- package/dist/index.mjs +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1552,7 +1552,8 @@ var LaserEyesProvider = ({
|
|
|
1552
1552
|
if (!library)
|
|
1553
1553
|
return;
|
|
1554
1554
|
if (provider === UNISAT) {
|
|
1555
|
-
|
|
1555
|
+
const lib = window.unisat;
|
|
1556
|
+
return yield lib == null ? void 0 : lib.signMessage(message);
|
|
1556
1557
|
} else if (provider === XVERSE) {
|
|
1557
1558
|
const tempAddy = toSignAddress || paymentAddress;
|
|
1558
1559
|
const response = yield (0, import_sats_connect.request)("signMessage", {
|
|
@@ -1642,7 +1643,8 @@ var LaserEyesProvider = ({
|
|
|
1642
1643
|
throw new Error("Invalid PSBT format");
|
|
1643
1644
|
}
|
|
1644
1645
|
if (provider === UNISAT) {
|
|
1645
|
-
const
|
|
1646
|
+
const lib = window.unisat;
|
|
1647
|
+
const signedPsbt = yield lib == null ? void 0 : lib.signPsbt(psbtHex, {
|
|
1646
1648
|
autoFinalized: finalize
|
|
1647
1649
|
});
|
|
1648
1650
|
const psbtSignedPsbt = bitcoin2.Psbt.fromHex(signedPsbt);
|
package/dist/index.mjs
CHANGED
|
@@ -1457,7 +1457,8 @@ var LaserEyesProvider = ({
|
|
|
1457
1457
|
if (!library)
|
|
1458
1458
|
return;
|
|
1459
1459
|
if (provider === UNISAT) {
|
|
1460
|
-
|
|
1460
|
+
const lib = window.unisat;
|
|
1461
|
+
return yield lib == null ? void 0 : lib.signMessage(message);
|
|
1461
1462
|
} else if (provider === XVERSE) {
|
|
1462
1463
|
const tempAddy = toSignAddress || paymentAddress;
|
|
1463
1464
|
const response = yield request("signMessage", {
|
|
@@ -1547,7 +1548,8 @@ var LaserEyesProvider = ({
|
|
|
1547
1548
|
throw new Error("Invalid PSBT format");
|
|
1548
1549
|
}
|
|
1549
1550
|
if (provider === UNISAT) {
|
|
1550
|
-
const
|
|
1551
|
+
const lib = window.unisat;
|
|
1552
|
+
const signedPsbt = yield lib == null ? void 0 : lib.signPsbt(psbtHex, {
|
|
1551
1553
|
autoFinalized: finalize
|
|
1552
1554
|
});
|
|
1553
1555
|
const psbtSignedPsbt = bitcoin2.Psbt.fromHex(signedPsbt);
|