@tokel/bitgo-komodo-cc-lib
Advanced tools
Comparing version 0.1.40 to 0.1.41
@@ -673,4 +673,4 @@ 'use strict'; | ||
verusData = decodeVerusCompatVData(parsedSpk.opdrop); | ||
if (verusData && verusData.extradata) | ||
vdata = verusData.extradata; // data in opdrop is the first priority | ||
if (verusData && verusData.appdata) | ||
vdata = verusData.appdata; // data in opdrop is the first priority | ||
} | ||
@@ -677,0 +677,0 @@ if (!vdata) |
@@ -501,2 +501,5 @@ /** | ||
const decoded = decodeTransactionData(tx.tx, tx.blockHeader, network) | ||
if (!decoded) { | ||
return; | ||
} | ||
decodedTxs.push(decoded) | ||
@@ -503,0 +506,0 @@ inTransactionsIds.push(decoded.ins.map(one => one.txid)) |
@@ -26,5 +26,12 @@ const Transaction = require('../src/transaction'); | ||
outs: decoded.outs.map(out => { | ||
let address = null; | ||
try { | ||
address = addresslib.fromOutputScript(out.script, network); | ||
} catch (e) { | ||
console.log(e); | ||
return null; | ||
} | ||
return { | ||
...out, | ||
address: addresslib.fromOutputScript(out.script, network), | ||
address, | ||
asm: bscript.toASM(out.script), | ||
@@ -31,0 +38,0 @@ } |
{ | ||
"name": "@tokel/bitgo-komodo-cc-lib", | ||
"version": "0.1.40", | ||
"version": "0.1.41", | ||
"description": "Client-side Bitcoin JavaScript library with Komodo cryptocondions support", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
338319
9219