@omnisat/lasereyes 0.0.33 → 0.0.35
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
|
@@ -645,7 +645,7 @@ var LaserEyesProvider = ({
|
|
|
645
645
|
const observer = new MutationObserver(() => {
|
|
646
646
|
var _a, _b;
|
|
647
647
|
let foundOkx;
|
|
648
|
-
if (network === TESTNET) {
|
|
648
|
+
if (network === TESTNET || network === FRACTAL_TESTNET) {
|
|
649
649
|
foundOkx = (_a = window == null ? void 0 : window.okxwallet) == null ? void 0 : _a.bitcoinTestnet;
|
|
650
650
|
} else if (network === MAINNET) {
|
|
651
651
|
foundOkx = (_b = window == null ? void 0 : window.okxwallet) == null ? void 0 : _b.bitcoin;
|
|
@@ -1375,7 +1375,7 @@ var LaserEyesProvider = ({
|
|
|
1375
1375
|
throw error;
|
|
1376
1376
|
}
|
|
1377
1377
|
});
|
|
1378
|
-
const signMessage = (message) => __async(void 0, null, function* () {
|
|
1378
|
+
const signMessage = (message, toSignAddress) => __async(void 0, null, function* () {
|
|
1379
1379
|
var _a;
|
|
1380
1380
|
try {
|
|
1381
1381
|
if (!library)
|
|
@@ -1396,6 +1396,8 @@ var LaserEyesProvider = ({
|
|
|
1396
1396
|
throw new Error("Error signing message: " + response.error.message);
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
|
+
} else if (provider === OYL) {
|
|
1400
|
+
return yield library == null ? void 0 : library.signMessage(message, "bip322", toSignAddress);
|
|
1399
1401
|
} else if (provider === MAGIC_EDEN) {
|
|
1400
1402
|
let signedMessage;
|
|
1401
1403
|
yield (0, import_sats_connect.signMessage)({
|
package/dist/index.mjs
CHANGED
|
@@ -555,7 +555,7 @@ var LaserEyesProvider = ({
|
|
|
555
555
|
const observer = new MutationObserver(() => {
|
|
556
556
|
var _a, _b;
|
|
557
557
|
let foundOkx;
|
|
558
|
-
if (network === TESTNET) {
|
|
558
|
+
if (network === TESTNET || network === FRACTAL_TESTNET) {
|
|
559
559
|
foundOkx = (_a = window == null ? void 0 : window.okxwallet) == null ? void 0 : _a.bitcoinTestnet;
|
|
560
560
|
} else if (network === MAINNET) {
|
|
561
561
|
foundOkx = (_b = window == null ? void 0 : window.okxwallet) == null ? void 0 : _b.bitcoin;
|
|
@@ -1285,7 +1285,7 @@ var LaserEyesProvider = ({
|
|
|
1285
1285
|
throw error;
|
|
1286
1286
|
}
|
|
1287
1287
|
});
|
|
1288
|
-
const signMessage = (message) => __async(void 0, null, function* () {
|
|
1288
|
+
const signMessage = (message, toSignAddress) => __async(void 0, null, function* () {
|
|
1289
1289
|
var _a;
|
|
1290
1290
|
try {
|
|
1291
1291
|
if (!library)
|
|
@@ -1306,6 +1306,8 @@ var LaserEyesProvider = ({
|
|
|
1306
1306
|
throw new Error("Error signing message: " + response.error.message);
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
|
+
} else if (provider === OYL) {
|
|
1310
|
+
return yield library == null ? void 0 : library.signMessage(message, "bip322", toSignAddress);
|
|
1309
1311
|
} else if (provider === MAGIC_EDEN) {
|
|
1310
1312
|
let signedMessage;
|
|
1311
1313
|
yield signMessageSatsConnect({
|