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

vochain/indexer: lowercase hex search terms when querying #1351

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mvdan
Copy link
Contributor

@mvdan mvdan commented Jul 6, 2024

(see commit message)

Fixes #1348.

Since the SQL query uses INSTR with LOWER and HEX, the input hex string
will never match if it contains any uppercase characters.
Normalize the input string as lowercase to avoid that issue.

In particular, uppercase letters can happen due to
https://eips.ethereum.org/EIPS/eip-55.

Fixes vocdoni#1348.
@coveralls
Copy link

coveralls commented Jul 6, 2024

Pull Request Test Coverage Report for Build 9819519616

Details

  • 3 of 3 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.02%) to 61.227%

Totals Coverage Status
Change from base Build 9778280430: 0.02%
Covered Lines: 16004
Relevant Lines: 26139

💛 - Coveralls

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.

bug: account search error 404 for existing account
3 participants