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 · 4 comments
Open

Viem and ethers6 compatibility in the Lit SDK #706

a1ttech opened this issue Oct 25, 2024 · 4 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.

@Chirag-S-Kotian
Copy link

assign this to me.

@Ansonhkg
Copy link
Collaborator

Hey @Chirag-S-Kotian feel free to get started and open a PR when you're done! We will review and merge it if everything is ok! :)

@Chirag-S-Kotian
Copy link

give me files details like where i can find the code related to this issue @Ansonhkg

@Ansonhkg
Copy link
Collaborator

@Chirag-S-Kotian you will find the code in the SDK

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

3 participants