@arcblock/forge-util
Advanced tools
Comparing version 0.35.1 to 0.36.0
@@ -385,7 +385,7 @@ /* eslint-disable no-bitwise */ | ||
* @param {string|number} input | ||
* @param {number} [decimal=16] | ||
* @param {number} [decimal=18] | ||
* @param {*} optionsInput | ||
* @returns {string} | ||
*/ | ||
const fromUnitToToken = (input, decimal = 16, optionsInput) => { | ||
const fromUnitToToken = (input, decimal = 18, optionsInput) => { | ||
let arc = numberToBN(input); | ||
@@ -430,6 +430,6 @@ const negative = arc.lt(zero); | ||
* @param {string} input | ||
* @param {number} [decimal=16] | ||
* @param {number} [decimal=18] | ||
* @returns BN | ||
*/ | ||
const fromTokenToUnit = (input, decimal = 16) => { | ||
const fromTokenToUnit = (input, decimal = 18) => { | ||
let ether = numberToString(input); | ||
@@ -436,0 +436,0 @@ const base = toBN(`1${'0'.repeat(decimal)}`, 10); |
{ | ||
"name": "@arcblock/forge-util", | ||
"version": "0.35.1", | ||
"version": "0.36.0", | ||
"description": "utils shared across mutlipe forge js libs, works in both node.js and browser", | ||
@@ -56,3 +56,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "30509f43f691bd6d582c5ea98da901d76e31f352" | ||
"gitHead": "8160929cf27760129264bcf3db9a3aab9ab19ba9" | ||
} |
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