@bsv/wallet-toolbox 1.2.45 → 1.2.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsv/wallet-toolbox",
3
- "version": "1.2.45",
3
+ "version": "1.2.46",
4
4
  "description": "BRC100 conforming wallet, wallet storage and wallet signer components",
5
5
  "main": "./out/src/index.js",
6
6
  "types": "./out/src/index.d.ts",
@@ -360,7 +360,11 @@ export class OverlayUMPTokenInteractor implements UMPTokenInteractor {
360
360
  description: oldTokenToConsume ? 'Renew UMP token (consume old, create new)' : 'Create new UMP token',
361
361
  inputs,
362
362
  outputs,
363
- inputBEEF: inputToken?.beef
363
+ inputBEEF: inputToken?.beef,
364
+ options: {
365
+ randomizeOutputs: false,
366
+ acceptDelayedBroadcast: false
367
+ }
364
368
  },
365
369
  adminOriginator
366
370
  )
@@ -1398,7 +1402,7 @@ export class CWIStyleWalletManager implements WalletInterface {
1398
1402
  const currentActiveId = this.activeProfileId
1399
1403
  let walletToUse: WalletInterface | undefined = this.underlying
1400
1404
 
1401
- if (currentActiveId.every(x => x === 0)) {
1405
+ if (!currentActiveId.every(x => x === 0)) {
1402
1406
  console.log('Temporarily switching to default profile to update UMP token...')
1403
1407
  await this.switchProfile(DEFAULT_PROFILE_ID) // This rebuilds this.underlying
1404
1408
  walletToUse = this.underlying
@@ -1411,7 +1415,7 @@ export class CWIStyleWalletManager implements WalletInterface {
1411
1415
  // Publish the new token on-chain, consuming the old one
1412
1416
  try {
1413
1417
  newTokenData.currentOutpoint = await this.UMPTokenInteractor.buildAndSend(
1414
- walletToUse, // Use the (potentially temporarily activated) default profile wallet
1418
+ walletToUse,
1415
1419
  this.adminOriginator,
1416
1420
  newTokenData,
1417
1421
  oldTokenToConsume // Consume the previous token
@@ -1289,7 +1289,10 @@ export class WalletPermissionsManager implements WalletInterface {
1289
1289
  basket: basketName,
1290
1290
  tags
1291
1291
  }
1292
- ]
1292
+ ],
1293
+ options: {
1294
+ acceptDelayedBroadcast: false
1295
+ }
1293
1296
  },
1294
1297
  this.adminOriginator
1295
1298
  )
@@ -1347,7 +1350,10 @@ export class WalletPermissionsManager implements WalletInterface {
1347
1350
  basket: BASKET_MAP[r.type],
1348
1351
  tags
1349
1352
  }
1350
- ]
1353
+ ],
1354
+ options: {
1355
+ acceptDelayedBroadcast: false
1356
+ }
1351
1357
  },
1352
1358
  this.adminOriginator
1353
1359
  )
@@ -1743,7 +1749,10 @@ export class WalletPermissionsManager implements WalletInterface {
1743
1749
  unlockingScriptLength: 73, // length of signature
1744
1750
  inputDescription: `Consume old permission token`
1745
1751
  }
1746
- ]
1752
+ ],
1753
+ options: {
1754
+ acceptDelayedBroadcast: false
1755
+ }
1747
1756
  },
1748
1757
  this.adminOriginator
1749
1758
  )