From 3050819784ba7bcbbee641d41d7759cc9b260c5b Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 29 Mar 2022 16:15:47 -0700 Subject: [PATCH 1/2] fix(Utxo.get()): Fixing typo --- src/utxo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utxo.js b/src/utxo.js index 0b4fbbc..fd29d3b 100644 --- a/src/utxo.js +++ b/src/utxo.js @@ -127,7 +127,7 @@ class UTXO { thisUtxo.address = thisSlpUtxo.address // tokenQty is property expected by SLP.tokentype1.js library - thisUtxo.tokenQty = thisUtxo.qyStr + thisUtxo.tokenQty = thisUtxo.qtyStr break } From ea83335fd225910b6288ae802f5f5d8f0beb7e57 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Tue, 29 Mar 2022 16:20:03 -0700 Subject: [PATCH 2/2] fix(Utxo.get()): Moving code to where it needs to be --- src/utxo.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utxo.js b/src/utxo.js index fd29d3b..cff27f3 100644 --- a/src/utxo.js +++ b/src/utxo.js @@ -126,9 +126,6 @@ class UTXO { thisUtxo.tokenId = thisSlpUtxo.tokenId thisUtxo.address = thisSlpUtxo.address - // tokenQty is property expected by SLP.tokentype1.js library - thisUtxo.tokenQty = thisUtxo.qtyStr - break } } @@ -233,6 +230,9 @@ class UTXO { 10 ** parseInt(thisUtxo.decimals) ) thisUtxo.qtyStr = qty.toString() + + // tokenQty is property expected by SLP.tokentype1.js library + thisUtxo.tokenQty = thisUtxo.qtyStr } return utxoAry