File tree 4 files changed +5
-3
lines changed
4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ This plugin integrates the GOAT Zilliqa plugin and wallet with Eliza.
14
14
## Installation
15
15
16
16
``` bash
17
- pnpm install @elizaos/plugin-goat
17
+ pnpm install @elizaos/plugin-zilliqa
18
18
```
19
19
20
20
## Configuration
Original file line number Diff line number Diff line change @@ -143,7 +143,6 @@ export async function getOnChainActions(
143
143
} ) ;
144
144
145
145
const allTools = { ...zilTools , ...tools } ;
146
- elizaLogger . info ( `allTools = ${ JSON . stringify ( allTools ) } ` ) ;
147
146
// 3. Let GOAT handle all the actions
148
147
return actionsWithoutHandler . map ( ( action ) => ( {
149
148
...action ,
Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ export async function zilliqaPlugin(
6
6
getSetting : ( key : string ) => string | undefined
7
7
) : Promise < Plugin > {
8
8
const zilliqaWalletClient = await getZilliqaWalletClient ( getSetting ) ;
9
+ if ( ! zilliqaWalletClient ) {
10
+ throw new Error ( "Zilliqa wallet client initialization failed. Ensure that EVM_PRIVATE_KEY and EVM_PROVIDER_URL are configured." ) ;
11
+ }
9
12
const walletClient = zilliqaWalletClient ! . getEVM ( ) ;
10
13
const actions = await getOnChainActions ( walletClient , zilliqaWalletClient ! ) ;
11
14
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { Account } from "@zilliqa-js/zilliqa";
13
13
// the ZILLIQA_PROVIDER_URL to the correct one for the chain
14
14
export const chain = mode ;
15
15
16
- function getViemChain ( provider , id , decimals ) : Chain {
16
+ function getViemChain ( provider : string , id : number , decimals : number ) : Chain {
17
17
return {
18
18
id : id | 0x8000 ,
19
19
name : "zilliqa" ,
You can’t perform that action at this time.
0 commit comments