Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added app/images/tempo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/images/tempo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions shared/constants/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export const CHAIN_IDS = {
MONAD: '0x8f',
HYPE: '0x3e7',
X_LAYER: '0xc4',
TEMPO_TESTNET: '0xa5bd',
} as const;

export const CHAINLIST_CHAIN_IDS_MAP = {
Expand Down Expand Up @@ -652,6 +653,7 @@ export const XRPLEVM_TESTNET_NATIVE_TOKEN_IMAGE_URL =
export const LENS_IMAGE_URL = './images/lens.png';
export const LENS_NATIVE_TOKEN_IMAGE_URL = './images/lens-native.svg';
export const PLUME_IMAGE_URL = './images/plume.png';
export const TEMPO_TOKEN_IMAGE_URL = './images/tempo.svg';
export const PLUME_NATIVE_TOKEN_IMAGE_URL = './images/plume-native.svg';
export const MATCHAIN_IMAGE_URL = './images/matchain.svg';
export const FLOW_IMAGE_URL = './images/flow.svg';
Expand Down Expand Up @@ -1091,6 +1093,7 @@ export const CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP: Record<string, string> = {
[CHAIN_IDS.MEGAETH_MAINNET]: MEGAETH_MAINNET_IMAGE_URL,
[CHAIN_IDS.NEAR]: NEAR_IMAGE_URL,
[CHAIN_IDS.NEAR_TESTNET]: NEAR_IMAGE_URL,
[CHAIN_IDS.TEMPO_TESTNET]: TEMPO_TOKEN_IMAGE_URL,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing native token image registration for Tempo testnet

Low Severity

The TEMPO_TESTNET chain is added to CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP for network icons, but not to CHAIN_ID_TOKEN_IMAGE_MAP which is used for native token images in components like the asset picker. Other similar testnets (e.g., MONAD_TESTNET, SOPHON_TESTNET, MEGAETH_TESTNET) are registered in both maps. This omission could cause the native token image to be missing/undefined when displaying Tempo testnet assets.

Fix in Cursor Fix in Web

[CHAINLIST_CHAIN_IDS_MAP.ARBITRUM_NOVA]: ARBITRUM_NOVA_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.ASTAR]: ASTAR_IMAGE_URL,
[CHAINLIST_CHAIN_IDS_MAP.BAHAMUT_MAINNET]: BAHAMUT_IMAGE_URL,
Expand Down
Loading