Skip to content

Commit ee9eed7

Browse files
committed
(fix) address PR feedback
1 parent 23779cf commit ee9eed7

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

packages/plugin-zilliqa/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This plugin integrates the GOAT Zilliqa plugin and wallet with Eliza.
1414
## Installation
1515

1616
```bash
17-
pnpm install @elizaos/plugin-goat
17+
pnpm install @elizaos/plugin-zilliqa
1818
```
1919

2020
## Configuration

packages/plugin-zilliqa/src/actions.ts

-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ export async function getOnChainActions(
143143
});
144144

145145
const allTools = { ...zilTools, ...tools };
146-
elizaLogger.info(`allTools = ${JSON.stringify(allTools)}`);
147146
// 3. Let GOAT handle all the actions
148147
return actionsWithoutHandler.map((action) => ({
149148
...action,

packages/plugin-zilliqa/src/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export async function zilliqaPlugin(
66
getSetting: (key: string) => string | undefined
77
): Promise<Plugin> {
88
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+
}
912
const walletClient = zilliqaWalletClient!.getEVM();
1013
const actions = await getOnChainActions(walletClient, zilliqaWalletClient!);
1114

packages/plugin-zilliqa/src/wallet.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { Account } from "@zilliqa-js/zilliqa";
1313
// the ZILLIQA_PROVIDER_URL to the correct one for the chain
1414
export const chain = mode;
1515

16-
function getViemChain(provider, id, decimals): Chain {
16+
function getViemChain(provider: string, id: number, decimals: number): Chain {
1717
return {
1818
id: id | 0x8000,
1919
name: "zilliqa",

0 commit comments

Comments
 (0)