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

refactor: merge segment collection logic [1/2] #143

Merged
merged 1 commit into from
Aug 20, 2024

Conversation

adamegyed
Copy link
Contributor

Motivation

We have duplicate code for advancing signature segments in runtime and user op validation.

Additionally, there was one more failure case for the final segment - length that exceeds the final segment.

Solution

Merge duplicate logic into SparseCalldataSegmentLib.

Add a check for the extra data past-the-end of the signature, and tests that verify this behavior.

@adamegyed adamegyed changed the title refactor: merge segment collection logic refactor: merge segment collection logic [1/2] Aug 15, 2024
@adamegyed adamegyed force-pushed the adam/merge-segment-logic branch from 13beea1 to 2168a96 Compare August 15, 2024 21:51
@adamegyed adamegyed force-pushed the adam/merge-segment-logic branch from 2168a96 to d042a7d Compare August 20, 2024 22:11
@adamegyed adamegyed merged commit 801f1f7 into develop Aug 20, 2024
3 checks passed
@adamegyed adamegyed deleted the adam/merge-segment-logic branch August 20, 2024 22:22
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