@exodus/bitcoin-api 2.21.0 → 2.21.1

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.21.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@2.21.0...@exodus/bitcoin-api@2.21.1) (2024-07-24)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * bump @exodus/bip322-js to remove warning ([#2929](https://github.com/ExodusMovement/assets/issues/2929)) ([74c20ad](https://github.com/ExodusMovement/assets/commit/74c20ad32ebed2df4eb0f498d11b7319e80b037a))
12
+ * retrieve `multiAddressMode` from config ([#2944](https://github.com/ExodusMovement/assets/issues/2944)) ([6bd70fb](https://github.com/ExodusMovement/assets/commit/6bd70fbc9e9ce6343ebf6bc8303bf13741cff307))
13
+
14
+
15
+
6
16
  ## [2.21.0](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@2.20.1...@exodus/bitcoin-api@2.21.0) (2024-07-19)
7
17
 
8
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/bitcoin-api",
3
- "version": "2.21.0",
3
+ "version": "2.21.1",
4
4
  "description": "Exodus bitcoin-api",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@exodus/asset-lib": "^4.1.0",
23
23
  "@exodus/basic-utils": "^2.1.0",
24
- "@exodus/bip322-js": "^1.1.0-exodus.4",
24
+ "@exodus/bip322-js": "^1.1.0-exodus.6",
25
25
  "@exodus/bip44-constants": "^195.0.0",
26
26
  "@exodus/bitcoin-lib": "^2.4.1",
27
27
  "@exodus/bitcoinjs-lib": "^6.1.5-exodus.2",
@@ -66,5 +66,5 @@
66
66
  "type": "git",
67
67
  "url": "git+https://github.com/ExodusMovement/assets.git"
68
68
  },
69
- "gitHead": "ba7439e1b8ae182a2a95ffd0ea09b8bc3330f2f6"
69
+ "gitHead": "3878129a053ebf9877c9d601858b8b2f2c7be70f"
70
70
  }
package/src/move-funds.js CHANGED
@@ -97,10 +97,14 @@ export const moveFundsFactory = ({
97
97
  throw new MoveFundsError('private-key-invalid', formatProps)
98
98
  }
99
99
 
100
+ const config = await assetClientInterface.getAssetConfig({
101
+ assetName,
102
+ walletAccount,
103
+ })
100
104
  const recieveAddressesObjects = await assetClientInterface.getReceiveAddresses({
101
105
  walletAccount,
102
106
  assetName,
103
- multiAddressMode: true,
107
+ multiAddressMode: config.multiAddressMode ?? true,
104
108
  })
105
109
 
106
110
  const receiveAddresses = recieveAddressesObjects.map(
@@ -635,10 +635,14 @@ export const createAndBroadcastTXFactory =
635
635
  },
636
636
  })
637
637
 
638
+ const config = await assetClientInterface.getAssetConfig({
639
+ assetName,
640
+ walletAccount,
641
+ })
638
642
  const walletAddressObjects = await assetClientInterface.getReceiveAddresses({
639
643
  walletAccount,
640
644
  assetName,
641
- multiAddressMode: true,
645
+ multiAddressMode: config.multiAddressMode ?? true,
642
646
  })
643
647
  // There are two cases of bumping, replacing or chaining a self-send.
644
648
  // If we have a bumpTxId, but we aren't replacing, then it is a self-send.