eos-common
Advanced tools
Comparing version 0.4.5 to 0.4.6
@@ -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", |
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
38218