Style fixes

This commit is contained in:
2019-04-24 19:31:04 +02:00
parent 145b3ea766
commit f984dec95a
5 changed files with 22 additions and 22 deletions

View File

@@ -1,10 +1,10 @@
const ethersUtils = require('ethers').utils;
module.exports = function (value, options = {}) {
module.exports = function(value, options = {}) {
let etherValue = ethersUtils.formatEther(value);
if (options.asFloat) {
return parseFloat(etherValue);
} else {
return parseInt(etherValue);
}
}
};