Skip to content

Commit 040db67

Browse files
committed
"chore : fixed fmt issue and revert commit"
1 parent 3857544 commit 040db67

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

agent/src/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ import { teeLogPlugin } from "@elizaos/plugin-tee-log";
8383
import { teeMarlinPlugin } from "@elizaos/plugin-tee-marlin";
8484
import { tonPlugin } from "@elizaos/plugin-ton";
8585
import { webSearchPlugin } from "@elizaos/plugin-web-search";
86+
import {injectivePlugin } from "@elizaos/plugin-injective";
8687

8788
import { giphyPlugin } from "@elizaos/plugin-giphy";
8889
import { letzAIPlugin } from "@elizaos/plugin-letzai";
@@ -760,6 +761,10 @@ export async function createAgent(
760761
getSecret(character, "WALLET_PUBLIC_KEY")?.startsWith("0x"))
761762
? evmPlugin
762763
: null,
764+
(getSecret(character, "EVM_PUBLIC_KEY") &&
765+
getSecret(character, "INJECTIVE_PRIVATE_KEY"))
766+
? injectivePlugin
767+
: null,
763768
getSecret(character, "COSMOS_RECOVERY_PHRASE") &&
764769
getSecret(character, "COSMOS_AVAILABLE_CHAINS") &&
765770
createCosmosPlugin(),

packages/plugin-injective/src/action/base.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ export function createGenericAction({
9898
// 5. Initialize the Injective client
9999
try {
100100
const rawNetwork = runtime.getSetting("INJECTIVE_NETWORK");
101+
const publicKey = runtime.getSetting("EVM_PUBLIC_KEY");
101102
const privateKey = runtime.getSetting("INJECTIVE_PRIVATE_KEY");
102-
const publicKey = runtime.getSetting("ETHEREUM_PUBLIC_KEY");
103103
const network = rawNetwork as
104104
| "MainnetK8s"
105105
| "MainnetLB"

0 commit comments

Comments
 (0)