feat(floor8): bchjs.Util.floor8(num) - Round down to 8 decimal places

This commit is contained in:
Chris Troutner
2021-02-13 14:55:12 -08:00
parent 32f89346c3
commit 9495381cf4
5 changed files with 103 additions and 2 deletions
@@ -112,7 +112,7 @@ describe('#UTXO', () => {
// console.log(`utxos: ${JSON.stringify(utxos, null, 2)}`)
const result = bchjs.Utxo.findBiggestUtxo(utxos[0].bchUtxos)
// console.log(`result: ${JSON.stringify(result, null, 2)}`)
console.log(`result: ${JSON.stringify(result, null, 2)}`)
assert.property(result, 'satoshis')
assert.equal(result.satoshis, 800)