Skip to content

Commit 64ff69e

Browse files
committedDec 22, 2024·
gm
1 parent c3e4d7c commit 64ff69e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎agent/src/index.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,9 @@ export async function createAgent(
486486
);
487487
}
488488

489-
let nftCollectionsPluginInstance: any | undefined;
490-
if (getSecret(character, "RESERVOIR_API_KEY")) {
491-
nftCollectionsPluginInstance = nftCollectionsPlugin;
492-
await nftCollectionsPluginInstance.setup(character);
493-
}
489+
let nftCollectionsPluginInstance = getSecret(character, "RESERVOIR_API_KEY")
490+
? nftCollectionsPlugin
491+
: null;
494492

495493
return new AgentRuntime({
496494
databaseAdapter: db,

0 commit comments

Comments
 (0)