Skip to content

Conversation

mablr
Copy link
Contributor

@mablr mablr commented Sep 11, 2025

Motivation

Closes #9482

Related to #10291 and alloy-rs/core#935

Solution

As Alloy provides now #[sol(ignore_unlinked) attribute, it's possible to ignore unlinked bytecode while parsing sol input.

  • Removed previous workaround
  • Added #[sol(ignore_unlinked) attribute to token stream in get_sol_input
  • Added a test to validate there is no error in presence of unlinked bytecode

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes (I don't think so...)

@@ -0,0 +1,27 @@
// <https://github.com/foundry-rs/foundry/issues/9482>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I created a file for bind subcommand, so we can either:

  • merge it to cmd.rs
  • or move all three existing bind tests here

Copy link
Contributor

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

looks good to me, I don't think we need a new CLI flag. would like @DaniPopes to take a look as well

changed your PR description to actively close #9482 as I do think it does as well

@onbjerg onbjerg added T-debt Type: code debt Cmd-forge-bind Command: forge bind labels Sep 11, 2025
@onbjerg onbjerg merged commit 693968a into foundry-rs:master Sep 11, 2025
25 checks passed
@github-project-automation github-project-automation bot moved this to Done in Foundry Sep 11, 2025
MerkleBoy pushed a commit to MerkleBoy/foundry that referenced this pull request Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cmd-forge-bind Command: forge bind T-debt Type: code debt
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

bug(forge bind --alloy): throws unlinked bytecode with placeholder error (forge build works)
3 participants