Skip to content

Commit

Permalink
Merge pull request elizaOS#678 from Phala-Network/fix/enable-tee-with…
Browse files Browse the repository at this point in the history
…-salt

fix: Make TEE Plugin available to launch agent & fix previous launch error
  • Loading branch information
lalalune authored Nov 29, 2024
2 parents abc187b + 4897043 commit 72d4cd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ COINBASE_GENERATED_WALLET_HEX_SEED=

# TEE Configuration
DSTACK_SIMULATOR_ENDPOINT=
WALLET_SECRET_SALT=secret_salt
WALLET_SECRET_SALT= # ONLY DEFINE IF YOU WANT TO USE TEE Plugin, otherwise it will throw errors

# Galadriel Configuration
GALADRIEL_API_KEY=gal-* # Get from https://dashboard.galadriel.com/
Expand Down
3 changes: 2 additions & 1 deletion agent/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { imageGenerationPlugin } from "@ai16z/plugin-image-generation";
import { evmPlugin } from "@ai16z/plugin-evm";
import { createNodePlugin } from "@ai16z/plugin-node";
import { solanaPlugin } from "@ai16z/plugin-solana";

import { teePlugin } from "@ai16z/plugin-tee";
import Database from "better-sqlite3";
import fs from "fs";
import path from "path";
Expand Down Expand Up @@ -392,6 +392,7 @@ export function createAgent(
getSecret(character, "COINBASE_PRIVATE_KEY")
? [coinbaseMassPaymentsPlugin, tradePlugin]
: []),
getSecret(character, "WALLET_SECRET_SALT") ? teePlugin : null,
].filter(Boolean),
providers: [],
actions: [],
Expand Down

0 comments on commit 72d4cd1

Please sign in to comment.