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

Ensure Address Checksum in Deployments lookup #1885

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

hectorgomezv
Copy link
Member

Summary

This PR checksums the address from StakingApi before the lookup in StakingRepository. Some staking providers like Kiln might not ensure the addresses being checksummed, and therefore the deployment associated with a checksummed address might not be found.

Changes

  • Checksums the Deployment.address coming from StakingApi before searching by address value.

@hectorgomezv hectorgomezv self-assigned this Sep 2, 2024
@hectorgomezv hectorgomezv requested a review from a team as a code owner September 2, 2024 20:50
@coveralls
Copy link

Pull Request Test Coverage Report for Build 10672874830

Details

  • 1 of 2 (50.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.005%) to 46.332%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/domain/staking/staking.repository.ts 1 2 50.0%
Totals Coverage Status
Change from base Build 10639751772: 0.005%
Covered Lines: 4812
Relevant Lines: 8364

💛 - Coveralls

@hectorgomezv hectorgomezv merged commit 0518b61 into main Sep 3, 2024
18 checks passed
@hectorgomezv hectorgomezv deleted the checksum-deployments-addresses-for-lookup branch September 3, 2024 08:45
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