Socket
Socket
Sign inDemoInstall

@arcblock/forge-util

Package Overview
Dependencies
Maintainers
1
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.8.1 to 0.8.4

4

lib/arc.js

@@ -30,3 +30,3 @@ const BN = require('bn.js');

const fromArc = (input, decimal = 18, optionsInput) => {
const fromArc = (input, decimal = 16, optionsInput) => {
let arc = numberToBN(input);

@@ -64,3 +64,3 @@ const negative = arc.lt(zero);

const toArc = (input, decimal = 18) => {
const toArc = (input, decimal = 16) => {
let ether = numberToString(input);

@@ -67,0 +67,0 @@ const base = toBN(`1${'0'.repeat(decimal)}`, 10);

{
"name": "@arcblock/forge-util",
"version": "0.8.1",
"version": "0.8.4",
"description": "utils shared across mutlipe forge js libs, works in both node.js and browser",

@@ -48,3 +48,3 @@ "keywords": [

},
"gitHead": "0ea1e4d982a76b6f9e13b91ac2d710198e03ba9c"
"gitHead": "b27defc377839ec2a28c51285f9081641001eb3e"
}
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