@dynamic-labs-wallet/node-btc 1.1.76 → 1.1.78

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
@@ -388,7 +388,7 @@ class DynamicBtcWalletClient extends node.DynamicWalletClient {
388
388
  context: _extends({}, context, {
389
389
  btcTransaction: {
390
390
  psbt: transaction,
391
- chainId: network === core.BitcoinNetwork.MAINNET ? '1' : '2'
391
+ chainId: network === core.BitcoinNetwork.TESTNET ? '2' : '1'
392
392
  }
393
393
  }),
394
394
  bitcoinConfig: completeBitcoinConfig,
@@ -426,7 +426,7 @@ class DynamicBtcWalletClient extends node.DynamicWalletClient {
426
426
  context: _extends({}, context, {
427
427
  btcTransaction: {
428
428
  psbt: transaction,
429
- chainId: network === core.BitcoinNetwork.MAINNET ? '1' : '2'
429
+ chainId: network === core.BitcoinNetwork.TESTNET ? '2' : '1'
430
430
  }
431
431
  }),
432
432
  bitcoinConfig: completeBitcoinConfig,
package/index.esm.js CHANGED
@@ -366,7 +366,7 @@ class DynamicBtcWalletClient extends DynamicWalletClient {
366
366
  context: _extends({}, context, {
367
367
  btcTransaction: {
368
368
  psbt: transaction,
369
- chainId: network === BitcoinNetwork.MAINNET ? '1' : '2'
369
+ chainId: network === BitcoinNetwork.TESTNET ? '2' : '1'
370
370
  }
371
371
  }),
372
372
  bitcoinConfig: completeBitcoinConfig,
@@ -404,7 +404,7 @@ class DynamicBtcWalletClient extends DynamicWalletClient {
404
404
  context: _extends({}, context, {
405
405
  btcTransaction: {
406
406
  psbt: transaction,
407
- chainId: network === BitcoinNetwork.MAINNET ? '1' : '2'
407
+ chainId: network === BitcoinNetwork.TESTNET ? '2' : '1'
408
408
  }
409
409
  }),
410
410
  bitcoinConfig: completeBitcoinConfig,
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/node-btc",
3
- "version": "1.1.76",
3
+ "version": "1.1.78",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "dependencies": {
7
- "@dynamic-labs-wallet/core": "1.1.76",
8
- "@dynamic-labs-wallet/node": "1.1.76",
9
- "@dynamic-labs-wallet/btc-utils": "1.1.76",
7
+ "@dynamic-labs-wallet/core": "1.1.78",
8
+ "@dynamic-labs-wallet/node": "1.1.78",
9
+ "@dynamic-labs-wallet/btc-utils": "1.1.78",
10
10
  "@dynamic-labs/sdk-api-core": "0.167.0",
11
11
  "bitcoinjs-lib": "^7.0.2",
12
12
  "tiny-secp256k1": "^2.2.3"