Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eos-common

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eos-common - npm Package Compare versions

Comparing version 0.4.5 to 0.4.6

4

dist/index.es.js

@@ -282,3 +282,3 @@ // https://github.com/EOSIO/eosio.cdt/blob/master/libraries/eosiolib/core/eosio/check.hpp

const precision = (amount_str.split(".")[1] || []).length;
this.amount = BigInt(Number(amount_str) * Math.pow(10, precision));
this.amount = BigInt(Math.round(Number(amount_str) * Math.pow(10, precision)));
this.symbol = new Symbol(symbol_str, precision);

@@ -327,3 +327,3 @@ }

// (() => {
// const quantity = new Asset("911.7285 EOS");
// const quantity = new Asset("9643.4600 USD");
// console.log(quantity);

@@ -330,0 +330,0 @@ // })()

@@ -286,3 +286,3 @@ 'use strict';

const precision = (amount_str.split(".")[1] || []).length;
this.amount = BigInt(Number(amount_str) * Math.pow(10, precision));
this.amount = BigInt(Math.round(Number(amount_str) * Math.pow(10, precision)));
this.symbol = new Symbol(symbol_str, precision);

@@ -331,3 +331,3 @@ }

// (() => {
// const quantity = new Asset("911.7285 EOS");
// const quantity = new Asset("9643.4600 USD");
// console.log(quantity);

@@ -334,0 +334,0 @@ // })()

{
"name": "eos-common",
"version": "0.4.5",
"version": "0.4.6",
"description": "EOSIO Smart Contract common library used for Typescript",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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