Skip to content

Commit 72d4cd1

Browse files
authoredNov 29, 2024
Merge pull request elizaOS#678 from Phala-Network/fix/enable-tee-with-salt
fix: Make TEE Plugin available to launch agent & fix previous launch error
2 parents abc187b + 4897043 commit 72d4cd1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ COINBASE_GENERATED_WALLET_HEX_SEED=
157157

158158
# TEE Configuration
159159
DSTACK_SIMULATOR_ENDPOINT=
160-
WALLET_SECRET_SALT=secret_salt
160+
WALLET_SECRET_SALT= # ONLY DEFINE IF YOU WANT TO USE TEE Plugin, otherwise it will throw errors
161161

162162
# Galadriel Configuration
163163
GALADRIEL_API_KEY=gal-* # Get from https://dashboard.galadriel.com/

‎agent/src/index.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { imageGenerationPlugin } from "@ai16z/plugin-image-generation";
3535
import { evmPlugin } from "@ai16z/plugin-evm";
3636
import { createNodePlugin } from "@ai16z/plugin-node";
3737
import { solanaPlugin } from "@ai16z/plugin-solana";
38-
38+
import { teePlugin } from "@ai16z/plugin-tee";
3939
import Database from "better-sqlite3";
4040
import fs from "fs";
4141
import path from "path";
@@ -392,6 +392,7 @@ export function createAgent(
392392
getSecret(character, "COINBASE_PRIVATE_KEY")
393393
? [coinbaseMassPaymentsPlugin, tradePlugin]
394394
: []),
395+
getSecret(character, "WALLET_SECRET_SALT") ? teePlugin : null,
395396
].filter(Boolean),
396397
providers: [],
397398
actions: [],

0 commit comments

Comments
 (0)
Please sign in to comment.