Skip to content

Commit

Permalink
Fix withdrawal tx list when token is not supported (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
lcamargof authored Oct 3, 2023
1 parent 79c2afb commit f32fa62
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ export function explorerTxToBridgeWithdrawal(tx: BlockExplorerTransaction): Brid
type: 'Withdrawal',
from: tx.from,
to: tx.to,
assetSymbol: token.L2symbol ?? '',
assetSymbol: token?.L2symbol ?? 'Unlisted',
amount: (
(functionName === 'withdraw' ? decodedWithdrawData[1] : decodedWithdrawData[2]) as BigNumber
).toString(),
blockTimestamp: tx.timeStamp,
hash: tx.hash as `0x${string}`,
priceApiId: token.apiId,
priceApiId: token?.apiId,
};
}
}

0 comments on commit f32fa62

Please sign in to comment.