-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
Cmd-forge-bindCommand: forge bindCommand: forge bindT-bugType: bugType: bugT-to-investigateType: to investigateType: to investigate
Description
Component
Forge
Have you ensured that all of these are up to date?
- Foundry
- Foundryup
What version of Foundry are you on?
forge Version: 1.3.4-v1.3.4
What version of Foundryup are you on?
foundryup: 1.3.0
What command(s) is the bug in?
forge bind
Operating System
Linux
Describe the bug
Generating bindings causes a crash when building contracts with solc 0.8.30 and 0.8.28.
> forge bind
[⠊] Compiling...
[⠒] Compiling 17 files with Solc 0.8.28
[⠆] Compiling 87 files with Solc 0.8.30
[⠒] Solc 0.8.28 finished in 159.69ms
[⠢] Solc 0.8.30 finished in 1.87s
Compiler run successful!
Generating bindings for 61 contracts
The application panicked (crashed).
Message: procedural macro API is used outside of a procedural macro
Location: library/proc_macro/src/bridge/client.rs:223
This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⋮ 8 frames hidden ⋮
9: core::option::expect_failed::h89af471ff13548f9
at <unknown source file>:<unknown line>
10: proc_macro_error2::entry_point::h14ed050800453d29
at <unknown source file>:<unknown line>
11: forge_sol_macro_gen::sol_macro_gen::MultiSolMacroGen::generate_bindings::hc702871666d93fff
at <unknown source file>:<unknown line>
12: forge_sol_macro_gen::sol_macro_gen::MultiSolMacroGen::write_to_crate::h8493800a1254a3ca
at <unknown source file>:<unknown line>
13: forge::cmd::bind::BindArgs::run::hb67dd16319702d90
at <unknown source file>:<unknown line>
14: forge::args::run_command::h1ed47f7e68c4da1f
at <unknown source file>:<unknown line>
15: forge::args::run::h1cb9a4093d77957a
at <unknown source file>:<unknown line>
16: forge::main::h252b3ab2a9ee741f
at <unknown source file>:<unknown line>
17: std::sys::backtrace::__rust_begin_short_backtrace::hcc7739581483dad1
at <unknown source file>:<unknown line>
18: _main<unknown>
at <unknown source file>:<unknown line>
foundry.toml
[profile.default]
src = "src"
out = "out"
libs = ["lib"]
deny-warnings = true
gas_reports = ["*"]
> forge --version && foundryup --version
forge Version: 1.3.4-v1.3.4
Commit SHA: fd677c899b643cf3f3abd2c7905a6e0ca2598c0c
Build Timestamp: 2025-09-03T11:39:53.680729000Z (1756899593)
Build Profile: maxperf
foundryup: 1.3.0
zerosnacks
Metadata
Metadata
Assignees
Labels
Cmd-forge-bindCommand: forge bindCommand: forge bindT-bugType: bugType: bugT-to-investigateType: to investigateType: to investigate
Type
Projects
Status
Backlog