Skip to content

Fix U64 conversion in delta_u64_serde using to::<u64>() instead of as… #2332

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

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

Conversation

GarmashAlex
Copy link

…_u64()

This commit fixes the issue in the delta_u64_serde module where as_u64() method was incorrectly used for converting U64 to u64.

  • Replaced all instances of as_u64() with to::() in the deserialize function
  • Updated test expectations in test_delta_u64_serde to match the actual serialization format
  • Added comprehensive tests to verify serialization consistency of LocalizedTransactionTrace
    The fix ensures correct serialization and deserialization of Delta values when used within the RPC trace module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant