Update src/deployments.ts #3

Merged
zramsay merged 2 commits from zramsay-patch-2 into main 2024-07-23 16:41:24 +00:00
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ export const getRegistry = (): Registry => {
//TODO(telackey): Use a pool. //TODO(telackey): Use a pool.
return new Registry( return new Registry(
laconicConfig.services?.registry?.gqlEndpoint, laconicConfig.services?.registry?.gqlEndpoint,
laconicConfig.services?.registry?.restEndpoint, laconicConfig.services?.registry?.rpcEndpoint,
laconicConfig.services?.registry?.chainId, laconicConfig.services?.registry?.chainId,
); );
}; };

View File

@ -85,7 +85,7 @@ export class RegHelper {
if (!idOrName) { if (!idOrName) {
return null; return null;
} }
if (idOrName.startsWith('crn:')) { if (idOrName.startsWith('lrn:')) {
return this.resolveName(idOrName); return this.resolveName(idOrName);
} }
return this.getRecordById(idOrName); return this.getRecordById(idOrName);