From fa89b3b1ec9e80cdbd065c485d1589c7a3160a56 Mon Sep 17 00:00:00 2001 From: HashWarlock Date: Fri, 29 Nov 2024 13:28:44 -0600 Subject: [PATCH 1/2] fix: remove default salt to remove launch agent errors & add tee plugin back into agent startup file --- .env.example | 2 +- agent/src/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env.example b/.env.example index 91d354b80e..a8e808b8e9 100644 --- a/.env.example +++ b/.env.example @@ -160,7 +160,7 @@ COINBASE_GENERATED_WALLET_HEX_SEED= # TEE Configuration DSTACK_SIMULATOR_ENDPOINT= -WALLET_SECRET_SALT=secret_salt +WALLET_SECRET_SALT= # Galadriel Configuration GALADRIEL_API_KEY=gal-* # Get from https://dashboard.galadriel.com/ diff --git a/agent/src/index.ts b/agent/src/index.ts index 7103e18751..c649bd9b33 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -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"; @@ -348,6 +348,7 @@ export function createAgent( getSecret(character, "COINBASE_PRIVATE_KEY") ? [coinbaseMassPaymentsPlugin, tradePlugin] : []), + getSecret(character, "WALLET_SECRET_SALT") ? teePlugin : null, ].filter(Boolean), providers: [], actions: [], From 4897043b5f13b04f7f51f5ff180f6873ebbe1758 Mon Sep 17 00:00:00 2001 From: HashWarlock Date: Fri, 29 Nov 2024 13:38:01 -0600 Subject: [PATCH 2/2] fix: add comment to make it clear what the variable is used for --- .env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.example b/.env.example index a8e808b8e9..b8b2f42b2a 100644 --- a/.env.example +++ b/.env.example @@ -160,7 +160,7 @@ COINBASE_GENERATED_WALLET_HEX_SEED= # TEE Configuration DSTACK_SIMULATOR_ENDPOINT= -WALLET_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/