From 2c1d46c206ece4e94cc91535bea79f1c0efebbaa Mon Sep 17 00:00:00 2001 From: Sky Young Date: Thu, 10 May 2018 14:36:28 -0700 Subject: [PATCH] Max Satosis of Flo > MAX_JAVASCRIPT_INT --- lib/utils/util.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/utils/util.js b/lib/utils/util.js index de43bb97..63eb65ec 100644 --- a/lib/utils/util.js +++ b/lib/utils/util.js @@ -861,7 +861,8 @@ util.memoryUsage = function memoryUsage() { util.toFixed = function toFixed(num, exp) { assert(typeof num === 'number'); - assert(Number.isSafeInteger(num), 'Invalid integer value.'); + // The max Flo is 160m, which when you count the satoshis of, it is larger than the max safe integer value + // assert(Number.isSafeInteger(num), 'Invalid integer value.'); let sign = '';