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

fix: fix wrong address case when resolved from ENS name #4894

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

wa0x6e
Copy link
Collaborator

@wa0x6e wa0x6e commented Sep 29, 2024

Summary

This PR fix an issue when delegating using the delegation dashboard, when the address is not checksummed.

Issue happens when the address is resolved from ENS, since our ENSNameResolver is always returning a lowercase address, while the delegation form is accepting only checksummed address

How to test

  1. Go to http://localhost:8080/#/cowtesting.eth/delegates?search=middleway.eth
  2. It should show the delegation card for the address 0xA11DA8B2D9A7883eb636d7de426025e5fD9fda1A
  3. Clicking on the delegate button should open the delegate modal, with the address pre-populated in the form, and is a valid checksummed address

Copy link
Member

@ChaituVR ChaituVR left a comment

Choose a reason for hiding this comment

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

utAck

@wa0x6e wa0x6e merged commit 620118d into master Sep 30, 2024
2 of 4 checks passed
@wa0x6e wa0x6e deleted the fix-wrong-address-case-when-resolved-from-ens branch September 30, 2024 08:30
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

Successfully merging this pull request may close these issues.

2 participants