mevblocker / web

https://mevblocker.io
7 stars 1 forks source link

Update to wallet connect v2 and viem #63

Closed anxolin closed 10 months ago

anxolin commented 11 months ago

I saw that MEV Blocker was not using Wallet Connect v2. So this PR adds it.

I thought this would be a quick change, but in order to do that, I had to:

All of the above broke badly the connection. So I had to fix a bunch of things, and change how we connect and then addRPC in the same click

Also, the error handling was broken because VIEM was wrapping the errors. I had to adapt this too.

Test

Try rejections, timeouts, etc.

vercel[bot] commented 11 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mevblocker-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 27, 2023 5:59pm