mirror of
https://github.com/status-im/safe-react.git
synced 2025-01-13 03:24:09 +00:00
Fix alternative token abi and token address for incoming transactions (#373)
This commit is contained in:
parent
80c87c6632
commit
b30e5c9109
@ -204,7 +204,7 @@ export const buildIncomingTransactionFrom = async (tx: IncomingTxServiceModel) =
|
|||||||
symbol = tokenSymbol
|
symbol = tokenSymbol
|
||||||
decimals = tokenDecimals
|
decimals = tokenDecimals
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
const { methods } = new web3.eth.Contract(ALTERNATIVE_TOKEN_ABI, tx.to)
|
const { methods } = new web3.eth.Contract(ALTERNATIVE_TOKEN_ABI, tx.tokenAddress)
|
||||||
const [tokenSymbol, tokenDecimals] = await Promise.all([methods.symbol, methods.decimals].map((m) => m().call()))
|
const [tokenSymbol, tokenDecimals] = await Promise.all([methods.symbol, methods.decimals].map((m) => m().call()))
|
||||||
symbol = web3.utils.toAscii(tokenSymbol)
|
symbol = web3.utils.toAscii(tokenSymbol)
|
||||||
decimals = tokenDecimals
|
decimals = tokenDecimals
|
||||||
|
Loading…
x
Reference in New Issue
Block a user