Skip to content

test: tests for nine more proxies #2467

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

0xthedance
Copy link
Contributor

@0xthedance 0xthedance commented Jan 13, 2025

What I did

This PR adds to #760 tests for the following proxies:

Clones
CWIA
OldCWIA
SoladyPush0
SoladyCWIA
SudoswapCWIA
SplitsCWIA
Sequence
Vyper

The tests for the following proxies failed: SoladyCWIA, SplitsCWIA,Vyper and OldCWIA. The pattern that the function get_proxy_info tries to identify can not be found in the proxy bytecode after compilation. I am unsure whether the issue lies in the compilation (perhaps optimizations are altering the bytecode) or if I am using the wrong proxy for the test. Something weird happens with two of them ( Vyper and SoladyCWIA),they are identified as Minimal proxies.

Regarding the other proxies (VyperBeta, and ZeroAge), I cannot find the test code for these proxies. Could you assist me with that?

fixes: #760

Copy link
Member

@antazoey antazoey left a comment

Choose a reason for hiding this comment

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

It is coming along! Some of your tests may be slightly off, but let us know if you discover actual bugs too along the way.

Copy link

github-actions bot commented Jul 1, 2025

This pull request is considered stale because it has been open 30 days with no activity. Remove stale label, add a comment, or make a new commit, otherwise this PR will be closed in 5 days.

@github-actions github-actions bot added the stale No activity for 30 days label Jul 1, 2025
@antazoey antazoey marked this pull request as ready for review July 1, 2025 14:50
ProxyType.ZeroAge: r"^3d3d3d3d363d3d37363d73(.{40})5af43d3d93803e602a57fd5bf3",
ProxyType.Clones: r"^36603057343d52307f830d2d700a97af574b186c80d40429385d24241565b08a7c559ba283a964d9b160203da23d3df35b3d3d3d3d363d3d37363d73(.{40})5af43d3d93803e605b57fd5bf3",
ProxyType.Vyper: r"^366000600037611000600036600073(.{40})5af4602c57600080fd5b6110006000f3",
Copy link
Member

Choose a reason for hiding this comment

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

I removed this because it never matched -- always matched Minimal... I think that makes sense though.
Same with Solady-- they are both just efficient ways of getting minimal proxies.

@antazoey antazoey force-pushed the add_proxies_test branch 4 times, most recently from 63b8d30 to 752c14d Compare July 1, 2025 14:55
@antazoey antazoey force-pushed the add_proxies_test branch from 752c14d to 0cabd90 Compare July 1, 2025 14:56
@antazoey
Copy link
Member

antazoey commented Jul 1, 2025

More work / research needed, but didn't want to lose the valid tests you added, so i just chopped off the troublesome parts for now so we can merge this. Feel free to return on a new PR to complete more! Thank you for the contrib ◡̈

@antazoey
Copy link
Member

antazoey commented Jul 1, 2025

i'm baffled by the error, i dont get it locally... my guess it is somehow related to github-action caching but can't figure out how it would have the test file changes but not the test contract's.

@github-actions github-actions bot removed the stale No activity for 30 days label Jul 2, 2025
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.

test: finish testing proxies
3 participants