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

Encode mock event hashes #1258

Merged
merged 2 commits into from
Mar 6, 2024
Merged

Encode mock event hashes #1258

merged 2 commits into from
Mar 6, 2024

Conversation

iamacook
Copy link
Member

@iamacook iamacook commented Mar 6, 2024

Summary

The latest version of viem returns "checksummed" hashes from events. Our SetPreSignatureEncoder was returning a lowercase hash which is incorrect. This hashes the orderUuid correctly.

The txHash within transactionAddedEventBuilder was being "checksummed" with a workaround. This adjusts the logic to mirror that of the above.

@iamacook iamacook self-assigned this Mar 6, 2024
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8171419222

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall first build on keccak-event-hashes at 93.171%

Totals Coverage Status
Change from base Build 8171128257: 93.2%
Covered Lines: 6405
Relevant Lines: 6633

💛 - Coveralls

@iamacook iamacook marked this pull request as ready for review March 6, 2024 11:43
@iamacook iamacook requested a review from a team as a code owner March 6, 2024 11:43
@iamacook iamacook merged commit f8471bd into main Mar 6, 2024
16 checks passed
@iamacook iamacook deleted the keccak-event-hashes branch March 6, 2024 11:59
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.

4 participants