Socket
Socket
Sign inDemoInstall

@arcblock/forge-util

Package Overview
Dependencies
Maintainers
2
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcblock/forge-util - npm Package Compare versions

Comparing version 0.35.1 to 0.36.0

8

lib/index.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc