Skip to content
Snippets Groups Projects
Commit 0d8f5afa authored by Robert Martin-Legene's avatar Robert Martin-Legene
Browse files

Switching to Math.pow()

parent 9614599b
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ var notation = [ 6 ]; ...@@ -11,7 +11,7 @@ var notation = [ 6 ];
function init() function init()
{ {
notation.push( 10**notation[0] ); notation.push( Math.pow(10, notation[0]) );
switch ( notation[0] ) { switch ( notation[0] ) {
case 6: case 6:
notation.push( "Mwei" ); notation.push( "Mwei" );
...@@ -20,7 +20,7 @@ function init() ...@@ -20,7 +20,7 @@ function init()
notation.push( "Gwei" ); notation.push( "Gwei" );
break; break;
default: default:
notation = [ 6, 10**6, "Mwei" ]; notation = [ 6, Math.pow(10, 6), "Mwei" ];
} }
bfa = new Libbfa(); bfa = new Libbfa();
web3 = bfa.newweb3(); web3 = bfa.newweb3();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment