@phantom/browser-sdk 0.0.7 → 0.0.8

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.
@@ -489,7 +489,7 @@ async function signAndSendTransaction(transaction) {
489
489
  await adapter.connect({ onlyIfTrusted: false });
490
490
  }
491
491
  let kitTransaction;
492
- if (transaction.constructor.name === "VersionedTransaction") {
492
+ if (transaction?.messageBytes == null) {
493
493
  kitTransaction = (0, import_compat2.fromVersionedTransaction)(transaction);
494
494
  } else {
495
495
  kitTransaction = transaction;
@@ -455,7 +455,7 @@ async function signAndSendTransaction(transaction) {
455
455
  await adapter.connect({ onlyIfTrusted: false });
456
456
  }
457
457
  let kitTransaction;
458
- if (transaction.constructor.name === "VersionedTransaction") {
458
+ if (transaction?.messageBytes == null) {
459
459
  kitTransaction = fromVersionedTransaction2(transaction);
460
460
  } else {
461
461
  kitTransaction = transaction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@phantom/browser-sdk",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",