diff --git a/src/config.ts b/src/config.ts index 9d54f51..d3456a3 100644 --- a/src/config.ts +++ b/src/config.ts @@ -25,7 +25,7 @@ export const getRegistry = (): Registry => { //TODO(telackey): Use a pool. return new Registry( laconicConfig.services?.registry?.gqlEndpoint, - laconicConfig.services?.registry?.restEndpoint, + laconicConfig.services?.registry?.rpcEndpoint, laconicConfig.services?.registry?.chainId, ); }; diff --git a/src/deployments.ts b/src/deployments.ts index e2010d6..cd5a92e 100644 --- a/src/deployments.ts +++ b/src/deployments.ts @@ -85,7 +85,7 @@ export class RegHelper { if (!idOrName) { return null; } - if (idOrName.startsWith('crn:')) { + if (idOrName.startsWith('lrn:')) { return this.resolveName(idOrName); } return this.getRecordById(idOrName);