Explorer: Include loader ids in program labels (#18778)

This commit is contained in:
Sebastian Bor
2021-07-21 11:23:47 +01:00
committed by GitHub
parent de35451e0d
commit 2bc7edfd01

View File

@ -157,6 +157,8 @@ export function programLabel(
if (programName && PROGRAM_DEPLOYMENTS[programName].includes(cluster)) { if (programName && PROGRAM_DEPLOYMENTS[programName].includes(cluster)) {
return programName; return programName;
} }
return LOADER_IDS[address];
} }
export function tokenLabel( export function tokenLabel(
@ -179,7 +181,6 @@ export function addressLabel(
): string | undefined { ): string | undefined {
return ( return (
programLabel(address, cluster) || programLabel(address, cluster) ||
LOADER_IDS[address] ||
SYSVAR_IDS[address] || SYSVAR_IDS[address] ||
SYSVAR_ID[address] || SYSVAR_ID[address] ||
tokenLabel(address, tokenRegistry) || tokenLabel(address, tokenRegistry) ||