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

SHARD-1197: Refactor calculateAppReceiptDataHash #114

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

S0naliThakur
Copy link
Member

Linear: https://linear.app/shm/issue/SHARD-1197/flaw-in-calculateappreceiptdatahash
Summary: Refactor app receipt data validation and hash calculation

  • Introduced a new function validateAppReceiptData to handle validation of app receipt data, improving code clarity and separation of concerns.
  • Updated the calculateAppReceiptDataHash function to focus solely on hash calculation.
  • Enhanced error handling in both validation and hash calculation processes.
  • Removed unnecessary copying of app receipt data during hash calculation.

…lculateAppReceiptDataHash`, improve error handling, and remove data copying.
…ts in correct validation state and update comments for clarity.
@devendra-shardeum devendra-shardeum requested review from devendra-shardeum and removed request for devendra-shardeum December 23, 2024 06:54
Copy link
Contributor

@devendra-shardeum devendra-shardeum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

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