fix: set default values for decimals and symbol to ETH

This commit is contained in:
fernandomg 2020-05-27 14:34:25 -03:00
parent 62f1a82793
commit a5a99167f4
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ export const buildTx = async ({
const refundParams = await getRefundParams(tx, getERC20DecimalsAndSymbol)
const decodedParams = getDecodedParams(tx)
const confirmations = getConfirmations(tx)
const { decimals = null, symbol = null } = isSendERC20Tx ? await getERC20DecimalsAndSymbol(tx.to) : {}
const { decimals = 18, symbol = 'ETH' } = isSendERC20Tx ? await getERC20DecimalsAndSymbol(tx.to) : {}
const txToStore: Transaction = makeTransaction({
baseGas: tx.baseGas,