Skip to content

Commit e57c1f3

Browse files
committed
Update index.ts
1 parent 7e8a783 commit e57c1f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

agent/src/index.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@ import path from "path";
120120
import { fileURLToPath } from "url";
121121
import yargs from "yargs";
122122

123-
124123
const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
125124
const __dirname = path.dirname(__filename); // get the name of the directory
126125

@@ -1027,7 +1026,10 @@ export async function createAgent(
10271026
getSecret(character, "RESERVOIR_API_KEY")
10281027
? createNFTCollectionsPlugin()
10291028
: null,
1030-
getSecret(character, "PYTH_GRANULAR_LOG") ? pythDataPlugin : null,
1029+
getSecret(character, "PYTH_TESTNET_PROGRAM_KEY") ||
1030+
getSecret(character, "PYTH_MAINNET_PROGRAM_KEY")
1031+
? pythDataPlugin
1032+
: null,
10311033
].filter(Boolean),
10321034
providers: [],
10331035
actions: [],

0 commit comments

Comments
 (0)