@exodus/bitcoin-api 2.0.1 → 2.1.0
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/bitcoin-api",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Exodus bitcoin-api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"@exodus/bip-schnorr": "0.6.6-fork-1",
|
|
41
41
|
"@noble/secp256k1": "~1.5.3"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "667523b6a37cb6d9755082df52c812a86cda594d"
|
|
44
44
|
}
|
|
@@ -375,15 +375,17 @@ export class BitcoinMonitorScanner {
|
|
|
375
375
|
// this is an array because legacy multisig has multiple addresses
|
|
376
376
|
if (!Array.isArray(vout.scriptPubKey.addresses)) return
|
|
377
377
|
if (vout.scriptPubKey.addresses.length === 0) return
|
|
378
|
-
|
|
378
|
+
const sentAddress = vout.scriptPubKey.addresses[0]
|
|
379
|
+
if (!addrMap[sentAddress]) {
|
|
379
380
|
if (isSent && !txLogItem.to) {
|
|
380
381
|
const val = currency.defaultUnit(vout.value)
|
|
381
|
-
|
|
382
|
+
const sentDisplayAddress = asset.address.displayAddress?.(sentAddress) || sentAddress
|
|
383
|
+
txLogItem.data.sent.push({ address: sentDisplayAddress, amount: val })
|
|
382
384
|
}
|
|
383
385
|
return
|
|
384
386
|
}
|
|
385
387
|
|
|
386
|
-
const address = addrMap[
|
|
388
|
+
const address = addrMap[sentAddress]
|
|
387
389
|
if (isReceiveAddress(address)) {
|
|
388
390
|
txLogItem.addresses.push(address)
|
|
389
391
|
}
|