Skip to content

Commit

Permalink
Added more significant digits to the ETH balance
Browse files Browse the repository at this point in the history
  • Loading branch information
409H committed Nov 19, 2017
1 parent 462f606 commit 8149827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/DomManipulator.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ class EtherAddressLookup {
objBrowser.runtime.sendMessage({func: "rpc_provider"}, function(objResponse) {
var web3 = new Web3(new Web3.providers.HttpProvider(objResponse.resp));
var str0xAddress = this.getAttribute("data-address");
var strAccountBalance = parseFloat(web3.fromWei(web3.eth.getBalance(str0xAddress).toString(10), "ether")).toLocaleString();
var strAccountBalance = parseFloat(web3.fromWei(web3.eth.getBalance(str0xAddress).toString(10), "ether")).toLocaleString('en-US', {maximumSignificantDigits: 9});
var intTransactionCount = parseInt(web3.eth.getTransactionCount(str0xAddress)).toLocaleString();
var blIsContractAddress = web3.eth.getCode(str0xAddress) == "0x" ? false: true;

Expand Down

0 comments on commit 8149827

Please sign in to comment.