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

Viem and ethers6 compatibility in the Lit SDK #706

Open
a1ttech opened this issue Oct 25, 2024 · 0 comments
Open

Viem and ethers6 compatibility in the Lit SDK #706

a1ttech opened this issue Oct 25, 2024 · 0 comments

Comments

@a1ttech
Copy link
Contributor

a1ttech commented Oct 25, 2024

Overview

The idea is that whenever a new Ethers provider or signer is accepted, the SDK starts by checking it's type. If it's an ethers provider or signer, the SDK should do nothing. If it's a Viem provider or signer, the Viem adaptor code (linked here) should be run first so that the correct ethers-compatible provider or signer can be passed into the Lit JS SDK function that needs it.

Motivation

This functionality will make the JS SDK "Viem compatible" and makes it really easy to use the Lit JS SDK on any dApp that is using Viem.

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

No branches or pull requests

1 participant