File tree 2 files changed +6
-1
lines changed
packages/plugin-injective/src/action
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ import { teeLogPlugin } from "@elizaos/plugin-tee-log";
83
83
import { teeMarlinPlugin } from "@elizaos/plugin-tee-marlin" ;
84
84
import { tonPlugin } from "@elizaos/plugin-ton" ;
85
85
import { webSearchPlugin } from "@elizaos/plugin-web-search" ;
86
+ import { injectivePlugin } from "@elizaos/plugin-injective" ;
86
87
87
88
import { giphyPlugin } from "@elizaos/plugin-giphy" ;
88
89
import { letzAIPlugin } from "@elizaos/plugin-letzai" ;
@@ -760,6 +761,10 @@ export async function createAgent(
760
761
getSecret ( character , "WALLET_PUBLIC_KEY" ) ?. startsWith ( "0x" ) )
761
762
? evmPlugin
762
763
: null ,
764
+ ( getSecret ( character , "EVM_PUBLIC_KEY" ) &&
765
+ getSecret ( character , "INJECTIVE_PRIVATE_KEY" ) )
766
+ ? injectivePlugin
767
+ : null ,
763
768
getSecret ( character , "COSMOS_RECOVERY_PHRASE" ) &&
764
769
getSecret ( character , "COSMOS_AVAILABLE_CHAINS" ) &&
765
770
createCosmosPlugin ( ) ,
Original file line number Diff line number Diff line change @@ -98,8 +98,8 @@ export function createGenericAction({
98
98
// 5. Initialize the Injective client
99
99
try {
100
100
const rawNetwork = runtime . getSetting ( "INJECTIVE_NETWORK" ) ;
101
+ const publicKey = runtime . getSetting ( "EVM_PUBLIC_KEY" ) ;
101
102
const privateKey = runtime . getSetting ( "INJECTIVE_PRIVATE_KEY" ) ;
102
- const publicKey = runtime . getSetting ( "ETHEREUM_PUBLIC_KEY" ) ;
103
103
const network = rawNetwork as
104
104
| "MainnetK8s"
105
105
| "MainnetLB"
You can’t perform that action at this time.
0 commit comments