@1sat/sweep-ui 0.0.94 → 0.0.95

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 CHANGED
@@ -2429,7 +2429,8 @@ function SweepApp({
2429
2429
  setSweepProgress(label + "...");
2430
2430
  try {
2431
2431
  const txid = await op();
2432
- addTx(label, txid);
2432
+ if (txid)
2433
+ addTx(label, txid);
2433
2434
  toast.success(label);
2434
2435
  await refreshAssets();
2435
2436
  } catch (e) {
@@ -2476,7 +2477,7 @@ function SweepApp({
2476
2477
  await refreshAssets();
2477
2478
  throw new Error(result.errors[0]);
2478
2479
  }
2479
- return result.bsvTxid ?? result.listingTxids[0] ?? "";
2480
+ return result.bsvTxid ?? "";
2480
2481
  });
2481
2482
  }, [
2482
2483
  resolveWallet,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1sat/sweep-ui",
3
- "version": "0.0.94",
3
+ "version": "0.0.95",
4
4
  "description": "Sweep UI components for migrating legacy BSV assets",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -29,11 +29,11 @@
29
29
  ],
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@1sat/actions": "0.0.214",
33
- "@1sat/client": "0.0.52",
34
- "@1sat/connect": "0.0.92",
35
- "@1sat/types": "0.0.44",
36
- "@1sat/utils": "0.0.35",
32
+ "@1sat/actions": "0.0.216",
33
+ "@1sat/client": "0.0.53",
34
+ "@1sat/connect": "0.0.93",
35
+ "@1sat/types": "0.0.45",
36
+ "@1sat/utils": "0.0.36",
37
37
  "bitcoin-backup": "^0.0.11",
38
38
  "class-variance-authority": "^0.7.1",
39
39
  "clsx": "^2.1.1",
@@ -42,11 +42,11 @@
42
42
  "tailwind-merge": "^3.5.0"
43
43
  },
44
44
  "peerDependencies": {
45
- "@bsv/sdk": "^2.5.0",
45
+ "@bsv/sdk": "^2.6.0",
46
46
  "react": "^18.0.0 || ^19.0.0"
47
47
  },
48
48
  "devDependencies": {
49
- "@bsv/sdk": "^2.5.0",
49
+ "@bsv/sdk": "^2.6.0",
50
50
  "@types/react": "^19.0.0",
51
51
  "react": "^19.0.0",
52
52
  "typescript": "~5.7.0"
@@ -221,7 +221,7 @@ export function SweepApp({
221
221
  setSweepProgress(label + '...')
222
222
  try {
223
223
  const txid = await op()
224
- addTx(label, txid)
224
+ if (txid) addTx(label, txid)
225
225
  toast.success(label)
226
226
  await refreshAssets()
227
227
  } catch (e) {
@@ -266,7 +266,7 @@ export function SweepApp({
266
266
  if (result.cancelledListings.length > 0) await refreshAssets()
267
267
  throw new Error(result.errors[0])
268
268
  }
269
- return result.bsvTxid ?? result.listingTxids[0] ?? ''
269
+ return result.bsvTxid ?? ''
270
270
  })
271
271
  }, [
272
272
  resolveWallet,