eliza
eliza copied to clipboard
EVM Plugin can't run any action
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
- Add an
EVM_PUBLIC_KEY
and anEVM_PRIVATE_KEY
to run the evmPlugin - Hardcode the balance returned by the wallet provider to 5 ETH.
- Build the
plugin-evm
withpnpm build
- Run the agent and use the example prompt from the plugin:
Transfer 1 ETH to 0x742d35Cc6634C0532925a3b844Bc454e4438f44e
- 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