mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-29 10:56:24 +00:00
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…
x
Reference in New Issue
Block a user