@dynamic-labs-wallet/btc 1.0.99 → 1.0.101

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/index.cjs CHANGED
@@ -584,7 +584,7 @@ class DynamicBtcWalletClient extends browser.DynamicWalletClient {
584
584
  context: _extends({}, context, {
585
585
  btcTransaction: {
586
586
  psbt: transaction,
587
- chainId: '1'
587
+ chainId: network === browser.BitcoinNetwork.MAINNET ? '1' : '2'
588
588
  }
589
589
  }),
590
590
  bitcoinConfig: completeBitcoinConfig,
@@ -626,7 +626,7 @@ class DynamicBtcWalletClient extends browser.DynamicWalletClient {
626
626
  context: _extends({}, context, {
627
627
  btcTransaction: {
628
628
  psbt: transaction,
629
- chainId: '1'
629
+ chainId: network === browser.BitcoinNetwork.MAINNET ? '1' : '2'
630
630
  }
631
631
  }),
632
632
  bitcoinConfig: completeBitcoinConfig,
package/index.esm.js CHANGED
@@ -563,7 +563,7 @@ class DynamicBtcWalletClient extends DynamicWalletClient {
563
563
  context: _extends({}, context, {
564
564
  btcTransaction: {
565
565
  psbt: transaction,
566
- chainId: '1'
566
+ chainId: network === BitcoinNetwork.MAINNET ? '1' : '2'
567
567
  }
568
568
  }),
569
569
  bitcoinConfig: completeBitcoinConfig,
@@ -605,7 +605,7 @@ class DynamicBtcWalletClient extends DynamicWalletClient {
605
605
  context: _extends({}, context, {
606
606
  btcTransaction: {
607
607
  psbt: transaction,
608
- chainId: '1'
608
+ chainId: network === BitcoinNetwork.MAINNET ? '1' : '2'
609
609
  }
610
610
  }),
611
611
  bitcoinConfig: completeBitcoinConfig,
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/btc",
3
- "version": "1.0.99",
3
+ "version": "1.0.101",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "dependencies": {
8
8
  "@dynamic-labs/sdk-api-core": "^0.0.1093",
9
- "@dynamic-labs-wallet/browser": "1.0.99",
10
- "@dynamic-labs-wallet/btc-utils": "1.0.99",
9
+ "@dynamic-labs-wallet/browser": "1.0.101",
10
+ "@dynamic-labs-wallet/btc-utils": "1.0.101",
11
11
  "@bitcoinerlab/secp256k1": "^1.2.0",
12
12
  "bitcoinjs-lib": "^7.0.0"
13
13
  },