Skip to content

Conversation

onbjerg
Copy link
Contributor

@onbjerg onbjerg commented Sep 22, 2025

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

  • Added Tests
  • Added Documentation
  • Breaking changes

zerosnacks
zerosnacks previously approved these changes Sep 22, 2025
Copy link
Member

@zerosnacks zerosnacks left a comment

Choose a reason for hiding this comment

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

👍

DaniPopes
DaniPopes previously approved these changes Sep 22, 2025
@DaniPopes
Copy link
Member

Error: Access is denied. (os error 5)
Error: error decoding response body

etc.

@onbjerg
Copy link
Contributor Author

onbjerg commented Sep 22, 2025

This is also blocked by the fact that there is no selector upload 👍

@onbjerg onbjerg marked this pull request as draft September 22, 2025 18:14
@onbjerg onbjerg moved this from Ready For Review to Blocked in Foundry Sep 22, 2025
@onbjerg onbjerg added the T-blocked Type: blocked label Sep 22, 2025
@onbjerg onbjerg self-assigned this Sep 23, 2025
@onbjerg onbjerg dismissed stale reviews from DaniPopes and zerosnacks via 346f529 September 29, 2025 19:36
@onbjerg onbjerg force-pushed the onbjerg/sourcify branch 5 times, most recently from 7755e98 to c781086 Compare September 29, 2025 20:59
@onbjerg onbjerg force-pushed the onbjerg/sourcify branch 2 times, most recently from 5c84701 to 3bb479f Compare September 30, 2025 11:33
@onbjerg onbjerg force-pushed the onbjerg/sourcify branch 3 times, most recently from 200e1af to e0e4ebc Compare September 30, 2025 12:05
@onbjerg onbjerg removed the T-blocked Type: blocked label Sep 30, 2025
@onbjerg onbjerg force-pushed the onbjerg/sourcify branch 5 times, most recently from 5d45365 to f160f96 Compare September 30, 2025 14:10
@onbjerg onbjerg force-pushed the onbjerg/sourcify branch 4 times, most recently from 5389b8a to 8fa2472 Compare September 30, 2025 14:31
@onbjerg onbjerg marked this pull request as ready for review September 30, 2025 14:40
@onbjerg onbjerg moved this from Blocked to Ready For Review in Foundry Sep 30, 2025
casttest!(fourbyte, |_prj, cmd| {
cmd.args(["4byte", "0xa9059cbb"]).assert_success().stdout_eq(str![[r#"
transfer(address,uint256)
_____$_$__$___$$$___$$___$__$$(address,uint256)
Copy link
Contributor

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?

Copy link
Contributor Author

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 😢

Copy link
Contributor

@0xrusowsky 0xrusowsky left a 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!

@onbjerg onbjerg merged commit e9764bb into master Sep 30, 2025
16 checks passed
@onbjerg onbjerg deleted the onbjerg/sourcify branch September 30, 2025 15:20
@github-project-automation github-project-automation bot moved this from Ready For Review to Done in Foundry Sep 30, 2025
grandizzy added a commit to grandizzy/foundry that referenced this pull request Oct 1, 2025
grandizzy added a commit that referenced this pull request Oct 1, 2025
Revert "fix: use sourcify for selector lookups (#11757)"

This reverts commit e9764bb.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants