Skip to content

Commit

Permalink
fix: merge tag v0.1.7
Browse files Browse the repository at this point in the history
  • Loading branch information
gene-zhan committed Jan 5, 2025
1 parent 43d5f68 commit c9a22eb
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ import { suiPlugin } from "@elizaos/plugin-sui";
import { TEEMode, teePlugin } from "@elizaos/plugin-tee";
import { tonPlugin } from "@elizaos/plugin-ton";
import { zksyncEraPlugin } from "@elizaos/plugin-zksync-era";
import { verifiableLogPlugin } from "@elizaos/plugin-tee-verifiable-log";
import { cronosZkEVMPlugin } from "@elizaos/plugin-cronoszkevm";
import { abstractPlugin } from "@elizaos/plugin-abstract";
import { avalanchePlugin } from "@elizaos/plugin-avalanche";
Expand All @@ -71,7 +70,7 @@ import path from "path";
import { fileURLToPath } from "url";
import yargs from "yargs";
import net from "net";

import { verifiableLogPlugin } from "@elizaos/plugin-tee-verifiable-log";
const __filename = fileURLToPath(import.meta.url); // get the resolved path to the file
const __dirname = path.dirname(__filename); // get the name of the directory

Expand Down Expand Up @@ -580,6 +579,9 @@ export async function createAgent(
...(teeMode !== TEEMode.OFF && walletSecretSalt
? [teePlugin, solanaPlugin]
: []),
(teeMode !== TEEMode.OFF && walletSecretSalt &&getSecret(character,"VLOG")
? verifiableLogPlugin
: null),
getSecret(character, "COINBASE_API_KEY") &&
getSecret(character, "COINBASE_PRIVATE_KEY") &&
getSecret(character, "COINBASE_NOTIFICATION_URI")
Expand Down Expand Up @@ -610,9 +612,6 @@ export async function createAgent(
getSecret(character, "ECHOCHAMBERS_API_KEY")
? echoChamberPlugin
: null,
(teeMode !== TEEMode.OFF && walletSecretSalt &&getSecret(character,"VLOG")
? verifiableLogPlugin
: null)
].filter(Boolean),
providers: [],
actions: [],
Expand Down

0 comments on commit c9a22eb

Please sign in to comment.