diff --git a/src/utils/registry.test.ts b/src/utils/registry.test.ts index d22c8a0..54f278e 100644 --- a/src/utils/registry.test.ts +++ b/src/utils/registry.test.ts @@ -66,7 +66,7 @@ describe("getRegistryContract", () => { const rawClient = {} as any; await expect(getRegistryContract(rawClient, fakeSigner)).rejects.toThrow( - /BadRegistryLookup/, + /MetaRegistryFailure/, ); expect(fromClientMock).not.toHaveBeenCalled(); diff --git a/src/utils/registry.ts b/src/utils/registry.ts index 3efbc16..dbfbd2b 100644 --- a/src/utils/registry.ts +++ b/src/utils/registry.ts @@ -30,7 +30,7 @@ export async function getRegistryContract( } catch (err) { const msg = err instanceof Error ? err.message : String(err); throw new Error( - `BadRegistryLookup: Could not resolve the live Playground registry contract address from the CDM meta-registry. Refusing to use the cdm.json snapshot because it may be stale. ${msg}`, + `MetaRegistryFailure: Could not resolve the live Playground registry contract address from the CDM meta-registry. Refusing to use the cdm.json snapshot because it may be stale. ${msg}`, { cause: err instanceof Error ? err : undefined }, ); }