Explorer: Include loader ids in program labels (#18778)
This commit is contained in:
@ -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) ||
|
||||||
|
Reference in New Issue
Block a user