@exodus/bitcoin-api 2.7.7-taprootpatch → 2.7.8
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 +3 -2
- package/src/utxos-utils.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-api",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.8",
|
|
4
4
|
"description": "Exodus bitcoin-api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -42,5 +42,6 @@
|
|
|
42
42
|
"@scure/base": "^1.1.3",
|
|
43
43
|
"@scure/btc-signer": "^1.1.0",
|
|
44
44
|
"jest-when": "^3.5.1"
|
|
45
|
-
}
|
|
45
|
+
},
|
|
46
|
+
"gitHead": "bcd735ed4e9775e3436257966d80fc524c1fa312"
|
|
46
47
|
}
|
package/src/utxos-utils.js
CHANGED
|
@@ -88,7 +88,8 @@ function isOrdinalUtxo({ utxo, ordinalsEnabled, knownBalanceUtxoIds, ordinalAddr
|
|
|
88
88
|
const hasOrdinals = validInscriptions.length > 0
|
|
89
89
|
|
|
90
90
|
if (ordinalAddress?.toString() === utxo.address.toString()) {
|
|
91
|
-
//
|
|
91
|
+
// if this condition is true, that means this is taproot
|
|
92
|
+
// so we always return true to ensure we accidentally don't spend an ordinal as btc
|
|
92
93
|
if (!hasOrdinals) {
|
|
93
94
|
console.log('Excluding utxo from btc spending:', utxo.address.toString(), utxo)
|
|
94
95
|
}
|