@exodus/bitcoin-api 4.2.1 → 4.2.2
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 +8 -0
- package/package.json +2 -2
- package/src/tx-create/create-tx.js +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [4.2.2](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@4.2.1...@exodus/bitcoin-api@4.2.2) (2025-11-10)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/bitcoin-api
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [4.2.1](https://github.com/ExodusMovement/assets/compare/@exodus/bitcoin-api@4.2.0...@exodus/bitcoin-api@4.2.1) (2025-11-03)
|
|
7
15
|
|
|
8
16
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-api",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "Bitcoin transaction and fee monitors, RPC with the blockchain node, other networking code.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"type": "git",
|
|
61
61
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "ba11d8958a6416d939b43f5297930f4069f7daa8"
|
|
64
64
|
}
|
|
@@ -73,16 +73,15 @@ async function prepareTransactionContext({
|
|
|
73
73
|
function processAddress({ asset, toAddress }) {
|
|
74
74
|
let processedAddress = toAddress
|
|
75
75
|
|
|
76
|
-
if (asset.address.toLegacyAddress) {
|
|
77
|
-
processedAddress = asset.address.toLegacyAddress(
|
|
76
|
+
if (processedAddress && asset.address.toLegacyAddress) {
|
|
77
|
+
processedAddress = asset.address.toLegacyAddress(processedAddress)
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
if (asset.name === 'digibyte' && asset.address.isP2SH2(processedAddress)) {
|
|
80
|
+
if (asset.name === 'digibyte' && processedAddress && asset.address.isP2SH2(processedAddress)) {
|
|
81
81
|
processedAddress = asset.address.P2SH2ToP2SH(processedAddress)
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
const useCashAddress = asset.address.isCashAddress?.(toAddress)
|
|
85
|
-
|
|
84
|
+
const useCashAddress = toAddress ? asset.address.isCashAddress?.(toAddress) : false
|
|
86
85
|
return { processedAddress, useCashAddress }
|
|
87
86
|
}
|
|
88
87
|
|
|
@@ -424,7 +423,8 @@ const transferHandler = {
|
|
|
424
423
|
// Add the keypath of change address to support Trezor detect the change output.
|
|
425
424
|
// Output is change and does not need approval from user which shows the strange address that user never seen.
|
|
426
425
|
if (changeAddressKeypath) {
|
|
427
|
-
|
|
426
|
+
const changeKey = ourAddress?.address ?? String(ourAddress)
|
|
427
|
+
addressPathsMap[changeKey] = changeAddressKeypath
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
// Create unsigned transaction
|