From 64ff69e74ed2b5841edc86076a9b5779b6626588 Mon Sep 17 00:00:00 2001 From: IKIGAI LABS XYZ <128307722+IkigaiLabsETH@users.noreply.github.com> Date: Sun, 22 Dec 2024 02:47:03 +0100 Subject: [PATCH] gm --- agent/src/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/agent/src/index.ts b/agent/src/index.ts index 8c82babf6f..5ebc72b53f 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -486,11 +486,9 @@ export async function createAgent( ); } - let nftCollectionsPluginInstance: any | undefined; - if (getSecret(character, "RESERVOIR_API_KEY")) { - nftCollectionsPluginInstance = nftCollectionsPlugin; - await nftCollectionsPluginInstance.setup(character); - } + let nftCollectionsPluginInstance = getSecret(character, "RESERVOIR_API_KEY") + ? nftCollectionsPlugin + : null; return new AgentRuntime({ databaseAdapter: db,