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

put alt. calldata decoder back #344

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

0age
Copy link
Contributor

@0age 0age commented Sep 5, 2024

h/t @d1ll0n for the assistance

note that there's still a failing test that needs to be investigated here, but it should handle data overlaps

@hensha256 hensha256 changed the base branch from better-calldata-checks to 0age-calldata September 5, 2024 23:18
@hensha256 hensha256 merged commit 95cdfdc into Uniswap:0age-calldata Sep 5, 2024
2 of 3 checks passed
hensha256 added a commit that referenced this pull request Sep 6, 2024
* improved calldata checks

* remove console

* remove toLengthOffset function

* natspec correction

* mask values to be within 32 bits

* verify array elements are encoded in order

* mask straight after calldata load

* masking in toBytes, remove selector constant

* fuzz test

* add testing

* fix for 0 array length

* put alt. calldata decoder back (#344)

Co-authored-by: 0age <[email protected]>

* core on main for debug profile

* Fix length check

* optimise toBytes

* linting

---------

Co-authored-by: 0age <[email protected]>
Co-authored-by: 0age <[email protected]>
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