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

createKernelAccountClient is not assignable to viem Client #177

Open
johanneskares opened this issue Aug 16, 2024 · 2 comments
Open

createKernelAccountClient is not assignable to viem Client #177

johanneskares opened this issue Aug 16, 2024 · 2 comments

Comments

@johanneskares
Copy link

johanneskares commented Aug 16, 2024

This doesn't compile. Shouldn't this be compatible?

import { Client } from "viem";
import { createKernelAccountClient } from "@zerodev/sdk";

const client: Client = createKernelAccountClient({...});
@mmatila
Copy link

mmatila commented Aug 26, 2024

I'd say so. At least according to the docs it says:

Since the Kernel account client implements Viem's wallet client interface, you can send UserOps with standard Viem methods.

@freeatnet
Copy link

freeatnet commented Sep 9, 2024

@johanneskares any chance you're instantiating it with an OP stack chain? If so, this may be relevant: wevm/viem#1784 wevm/viem#2282 (comment)

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

No branches or pull requests

3 participants