From 0d8f5afa0cb1f12cddfb82e2dd4922562e88acc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Martin-Leg=C3=A8ne?= <robert@nic.ar> Date: Fri, 5 Oct 2018 16:28:36 -0300 Subject: [PATCH] Switching to Math.pow() --- bin/MasterDistiller.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/MasterDistiller.js b/bin/MasterDistiller.js index 1fcabec..80b9181 100755 --- a/bin/MasterDistiller.js +++ b/bin/MasterDistiller.js @@ -11,7 +11,7 @@ var notation = [ 6 ]; function init() { - notation.push( 10**notation[0] ); + notation.push( Math.pow(10, notation[0]) ); switch ( notation[0] ) { case 6: notation.push( "Mwei" ); @@ -20,7 +20,7 @@ function init() notation.push( "Gwei" ); break; default: - notation = [ 6, 10**6, "Mwei" ]; + notation = [ 6, Math.pow(10, 6), "Mwei" ]; } bfa = new Libbfa(); web3 = bfa.newweb3(); -- GitLab