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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

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