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 checksum for ICRC-1 addresses #5496

Merged
merged 1 commit into from
Sep 19, 2024
Merged

Fix checksum for ICRC-1 addresses #5496

merged 1 commit into from
Sep 19, 2024

Conversation

dskloetd
Copy link
Contributor

Motivation

The textual address format of an ICRC-1 account with subaccount has leading zeros removed from the subaccount.
The address also contains a checksum of the account and subaccount but when calculating the checksum, the leading zeros should not be removed from the subaccount.
The convert-id script did this wrong.

Changes

Calculate the checksum with the subaccount without leading zeros removed.

Tests

Test updated.

Todos

  • Add entry to changelog (if necessary).
    not necessary

@dskloetd dskloetd marked this pull request as ready for review September 19, 2024 14:09
@dskloetd dskloetd requested a review from a team as a code owner September 19, 2024 14:09
@dskloetd dskloetd added this pull request to the merge queue Sep 19, 2024
Merged via the queue into main with commit 65e7984 Sep 19, 2024
30 checks passed
@dskloetd dskloetd deleted the kloet/convert-checksum branch September 19, 2024 15:33
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