mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
fix(Utxo.get()): Moving code to where it needs to be
This commit is contained in:
+3
-3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user