fix: set default values for decimals and symbol to ETH
This commit is contained in:
parent
62f1a82793
commit
a5a99167f4
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue