-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix: use sourcify for selector lookups #11757
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
Conversation
0aaa03f
to
2e229b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
etc. |
This is also blocked by the fact that there is no selector upload 👍 |
7755e98
to
c781086
Compare
5c84701
to
3bb479f
Compare
200e1af
to
e0e4ebc
Compare
5d45365
to
f160f96
Compare
5389b8a
to
8fa2472
Compare
8fa2472
to
61fa3cb
Compare
61fa3cb
to
797a277
Compare
casttest!(fourbyte, |_prj, cmd| { | ||
cmd.args(["4byte", "0xa9059cbb"]).assert_success().stdout_eq(str![[r#" | ||
transfer(address,uint256) | ||
_____$_$__$___$$$___$$___$__$$(address,uint256) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this the other fn sig that produces a selector collision that u mentioned earlier?
should we add a small cmnt or is it clear enough already?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes and idt a comment makes sense, we just have to live with the fact that people can find collissions and break our test suite 😢
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
makes sense to me!
This reverts commit e9764bb.
Motivation
Openchain has been transferred to Sourcify, and the original domain was not migrated.
Solution
Use the new Sourcify API for selector lookup and import.
I've removed some duplicate tests, and some tests that no longer apply. Additionally, I've had to ignore some tests because they depend on selectors that are not present in Sourcify.
PR Checklist