From f99c51e4df036096e18189ab7be5d45171869091 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 18 Mar 2024 13:01:07 -0400 Subject: [PATCH] fix: only call registerDefaults when registry isn't init'ed --- src/sdk.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sdk.ts b/src/sdk.ts index 4cb3a1f..9151072 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -33,10 +33,9 @@ export class Sdk { public protocols(): Registry { if (!this.registry) { this.registry = new Registry(this); + registerDefaults(this.registry!); } - registerDefaults(this.registry!); - return this.registry!; }