Store kredits tokens as wei with 18 decimals

This stores the tokens with 18 decimals as most other tokens and as
assumed by a potential future token standard EIP 777.
This commit is contained in:
2019-04-10 13:54:55 +02:00
parent 1aae62e139
commit 26d12ba239
2 changed files with 7 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
const promptly = require('promptly');
const Table = require('cli-table');
const ethers = require('ethers');
const initKredits = require('./helpers/init_kredits.js');
@@ -27,7 +28,7 @@ module.exports = async function(callback) {
c.account,
c.isCore,
`${c.name}`,
c.balance.toString()
ethers.utils.formatEther(c.balance)
])
})
console.log(table.toString())