Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Make blockchain addresses case insensitive #1161

Merged
merged 5 commits into from
Sep 17, 2019

Conversation

mederic-p
Copy link
Contributor

@mederic-p mederic-p commented Sep 13, 2019

Issue/Task Number: 1160
Closes #1160

Overview

This PR updates the db column of stored blockchain address to be case insensitive so they can be searched given a string ignoring its case.
It also force downcase blockchain addresses before saving them in the DB.

@unnawut
Copy link
Contributor

unnawut commented Sep 16, 2019

When user sends in a mixed case address, there's some expectation that the address is invalid rejected if it's mistyped/mis-copypasted. We should validate the checksum when it is an external input.

The address can be saved as all lowercase in the database I think, easier for search. I see Etherscan actually does that too, pass the address around as lower case and only encoding back to mixed case on display.

@mederic-p mederic-p changed the title [WIP] Make blockchain addresses case insensitive Make blockchain addresses case insensitive Sep 16, 2019
@unnawut unnawut added this to 4-Review in eWallet Sep 16, 2019
@mederic-p mederic-p merged commit 9e5a26b into eth-blockchain Sep 17, 2019
eWallet automation moved this from 4-Review to 5-Done Sep 17, 2019
@mederic-p mederic-p deleted the 1160-address-case-insensitive branch September 17, 2019 05:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
eWallet
  
5-Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants