Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin-EVM: Error in swap handler #2661

Open
dxganta opened this issue Jan 22, 2025 · 5 comments
Open

Plugin-EVM: Error in swap handler #2661

dxganta opened this issue Jan 22, 2025 · 5 comments
Labels

Comments

@dxganta
Copy link

dxganta commented Jan 22, 2025

I am getting the following error when trying to swap tokens using the evm plugin:

Error in swap handler: SDK Execution Provider not found.

To Reproduce

Add the EVM plugin to your character file, and prompt the agent to swap from ETH to USDC.

Expected behavior

The agent fails to swap the tokens with the following error:

Error in swap handler: SDK Execution Provider not found.

Screenshots

Image

Additional context

The problem is most probably in the createConfig section for the LIFI SDK in the wallet.ts file.

@dxganta dxganta added the bug Something isn't working label Jan 22, 2025
Copy link
Contributor

Hello @dxganta! Welcome to the elizaOS community. Thank you for opening your first issue; we appreciate your contribution. You are now an elizaOS contributor!

@AIFlowML
Copy link
Collaborator

Hello @dxganta
What version are you running ?
Can you provide me some more details ?

@dxganta
Copy link
Author

dxganta commented Jan 23, 2025

Hello @dxganta What version are you running ? Can you provide me some more details ?

Image

I am using the main branch from the eliza repository.

My node version is v23.3.0

@eric2hen
Copy link
Contributor

I'm getting the same error.

"providers" is being passed in createConfig in LI.FI SDK's document.
https://docs.li.fi/integrate-li.fi-sdk/configure-sdk-providers#local-accounts

I tried some temporary code and it worked. But I'm not sure what's the cleanest way to implement it.

@dxganta
Copy link
Author

dxganta commented Jan 27, 2025

#2820

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants