eliza icon indicating copy to clipboard operation
eliza copied to clipboard

EVM Plugin can't run any action

Open 0xaguspunk opened this issue 3 months ago • 16 comments

Describe the bug

The EVM Plugin actions do not work, they probably never worked.

The code assumes that the options object passed to the handler of the action has all the parameters of the action parsed automagically. It's assuming a tool calling pattern like the one AI SDK offers.

To Reproduce

  1. Add an EVM_PUBLIC_KEY and an EVM_PRIVATE_KEY to run the evmPlugin
  2. Hardcode the balance returned by the wallet provider to 5 ETH.
  3. Build the plugin-evm with pnpm build
  4. Run the agent and use the example prompt from the plugin: Transfer 1 ETH to 0x742d35Cc6634C0532925a3b844Bc454e4438f44e
  5. The agent should fail with error ["⛔ TypeError: Cannot read properties of undefined (reading 'chainId')"]

You can also add a console.log when transfer is called with the params and you will see the content is empty.

Expected behavior Agent should fail because transaction failed.

Screenshots Screenshot 2024-12-01 at 02 18 52

0xaguspunk avatar Dec 01 '24 01:12 0xaguspunk