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

Replace ethers with viem #528

Merged
merged 9 commits into from
Feb 28, 2024
Merged

Replace ethers with viem #528

merged 9 commits into from
Feb 28, 2024

Conversation

rygine
Copy link
Collaborator

@rygine rygine commented Feb 6, 2024

this PR replaces the use of ethers with viem. see Why Viem for more info on this change.

@rygine rygine requested a review from a team February 6, 2024 19:28
src/crypto/Signature.ts Outdated Show resolved Hide resolved
Copy link

cloudflare-workers-and-pages bot commented Feb 7, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1a3500d
Status: ✅  Deploy successful!
Preview URL: https://bb18864c.xmtp-js.pages.dev
Branch Preview URL: https://rygine-ethers-to-viem.xmtp-js.pages.dev

View logs

@rygine rygine force-pushed the rygine/ethers-to-viem branch 2 times, most recently from 036d78c to 74cc692 Compare February 26, 2024 23:33
alice.conversations.newConversation(bobUpper)
).resolves.toMatchObject({
peerAddress: bob.address,
})
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an all uppercase address generates an error with viem so removed this test. the getAddress function runs through this bit of code before returning the checksum address. we could keep the test and update our code to always lowercase an address before generating a checksum address.

@rygine rygine force-pushed the rygine/ethers-to-viem branch from 74cc692 to 72ab6db Compare February 27, 2024 17:41
@rygine rygine merged commit 410be93 into main Feb 28, 2024
9 checks passed
@rygine rygine deleted the rygine/ethers-to-viem branch February 28, 2024 17:24
Copy link
Contributor

🎉 This PR is included in version 11.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants