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: continue the tx validation loop if assetId length check fails #18

Merged
merged 1 commit into from
May 21, 2024

Conversation

bharath-123
Copy link
Contributor

Currently, we check if the length of the assetId sent by the rollup is of 32 bytes. If the check fails, we still continue executing the code which will lead to a panic as in the subsequent we try to index the bytes.

The fix would be to ignore this tx when the validation fails

@bharath-123 bharath-123 force-pushed the bharath/fix-potential-panic branch from b2a45db to ea1659e Compare May 21, 2024 09:35
@bharath-123 bharath-123 merged commit 03f5d7e into main May 21, 2024
1 check passed
@bharath-123 bharath-123 deleted the bharath/fix-potential-panic branch May 21, 2024 09:40
bharath-123 added a commit that referenced this pull request May 29, 2024
Currently, we check if the length of the assetId sent by the rollup is
of 32 bytes. If the check fails, we still continue executing the code
which will lead to a panic as in the subsequent we try to index the
bytes.

The fix would be to ignore this tx when the validation fails
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