fix: execute decodeParams for all sendTokenTxs
This commit is contained in:
parent
0cd526f47a
commit
edcfd2e32e
|
@ -133,7 +133,8 @@ export const buildTransactionFrom = async (
|
||||||
let symbol = txTokenSymbol || 'ETH'
|
let symbol = txTokenSymbol || 'ETH'
|
||||||
let decimals = txTokenDecimals || 18
|
let decimals = txTokenDecimals || 18
|
||||||
let decodedParams
|
let decodedParams
|
||||||
if (isSendTokenTx && (txTokenSymbol === null || txTokenDecimals === null)) {
|
if (isSendTokenTx) {
|
||||||
|
if (txTokenSymbol === null || txTokenDecimals === null) {
|
||||||
try {
|
try {
|
||||||
const [tokenSymbol, tokenDecimals] = await Promise.all(
|
const [tokenSymbol, tokenDecimals] = await Promise.all(
|
||||||
generateBatchRequests({
|
generateBatchRequests({
|
||||||
|
@ -152,6 +153,7 @@ export const buildTransactionFrom = async (
|
||||||
isSendTokenTx = false
|
isSendTokenTx = false
|
||||||
customTx = true
|
customTx = true
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const params = web3.eth.abi.decodeParameters(['address', 'uint256'], tx.data.slice(10))
|
const params = web3.eth.abi.decodeParameters(['address', 'uint256'], tx.data.slice(10))
|
||||||
decodedParams = {
|
decodedParams = {
|
||||||
|
|
Loading…
Reference in New Issue