feature/default_network_editable
Thomas Huang 7 years ago committed by Chi Kei Chan
parent 62f2aebe1d
commit 5120cfdff3
  1. 2
      ui/app/components/currency-input.js
  2. 4
      ui/app/components/send/send-utils.js
  3. 2
      ui/app/conversion-util.js
  4. 2
      ui/app/send-v2.js

@ -40,7 +40,7 @@ function sanitizeDecimal (val) {
// sanitizeValue('.200') -> '0.200'
// sanitizeValue('a.b.1.c,89.123') -> '0.189123'
function sanitizeValue (value) {
let [,integer, point, decimal] = (/([^.]*)([.]?)([^.]*)/).exec(value)
let [integer, point, decimal] = (/([^.]*)([.]?)([^.]*)/).exec(value)
integer = sanitizeInteger(integer) || '0'
decimal = sanitizeDecimal(decimal)

@ -7,7 +7,7 @@ const {
calcTokenAmount,
} = require('../../token-util')
function isBalanceSufficient({
function isBalanceSufficient ({
amount = '0x0',
gasTotal = '0x0',
balance,
@ -39,7 +39,7 @@ function isBalanceSufficient({
return balanceIsSufficient
}
function isTokenBalanceSufficient({
function isTokenBalanceSufficient ({
amount = '0x0',
tokenBalance,
decimals,

@ -151,7 +151,7 @@ const subtractCurrencies = (a, b, options = {}) => {
bBase,
...conversionOptions
} = options
const value = (new BigNumber(a, aBase)).minus(b, bBase);
const value = (new BigNumber(a, aBase)).minus(b, bBase)
return converter({
value,

@ -106,7 +106,7 @@ SendTransactionScreen.prototype.componentWillMount = function () {
.all([
getGasPrice(),
estimateGas(estimateGasParams),
tokenContract && tokenContract.balanceOf(from.address)
tokenContract && tokenContract.balanceOf(from.address),
])
.then(([gasPrice, gas, usersToken]) => {

Loading…
Cancel
Save