Skip to content

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
@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.

3 participants