fix(Utxo.get()): Moving code to where it needs to be

This commit is contained in:
Chris Troutner
2022-03-29 16:20:03 -07:00
parent 3050819784
commit ea83335fd2
+3 -3
View File
@@ -126,9 +126,6 @@ class UTXO {
thisUtxo.tokenId = thisSlpUtxo.tokenId thisUtxo.tokenId = thisSlpUtxo.tokenId
thisUtxo.address = thisSlpUtxo.address thisUtxo.address = thisSlpUtxo.address
// tokenQty is property expected by SLP.tokentype1.js library
thisUtxo.tokenQty = thisUtxo.qtyStr
break break
} }
} }
@@ -233,6 +230,9 @@ class UTXO {
10 ** parseInt(thisUtxo.decimals) 10 ** parseInt(thisUtxo.decimals)
) )
thisUtxo.qtyStr = qty.toString() thisUtxo.qtyStr = qty.toString()
// tokenQty is property expected by SLP.tokentype1.js library
thisUtxo.tokenQty = thisUtxo.qtyStr
} }
return utxoAry return utxoAry