@getsafle/vault-bitcoin-controller
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -30,1 +30,7 @@ ### 1.0.0 (2021-12-27) | ||
- Changed satPerByte from optional to compulsory parameter. | ||
### 1.2.2 (2022-09-06) | ||
##### UTXO calculation fix | ||
- UTXO.satoshi calculation fix. |
{ | ||
"name": "@getsafle/vault-bitcoin-controller", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "", | ||
@@ -44,2 +44,2 @@ "engines": { | ||
} | ||
} | ||
} |
@@ -16,3 +16,3 @@ const axios = require('axios') | ||
let utxo = {}; | ||
utxo.satoshis = Math.floor(Number(element.value) * SATOSHI); | ||
utxo.satoshis = Math.ceil(parseFloat(element.value) * SATOSHI); | ||
utxo.script = element.script_hex; | ||
@@ -19,0 +19,0 @@ utxo.address = utxos.data.data.address; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22936