Skip to content
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

Incompatible build with foundry 0.3.0 #957

Open
web3nish opened this issue Dec 31, 2024 · 1 comment · May be fixed by #968
Open

Incompatible build with foundry 0.3.0 #957

web3nish opened this issue Dec 31, 2024 · 1 comment · May be fixed by #968
Assignees
Labels
bug Something isn't working
Milestone

Comments

@web3nish
Copy link

Describe the bug
When setting up new project, foundry 0.3.0 doesn't compile the contract correctly because of which rust compiler panics

To reproduce
Install foundry 0.3.0 and run cargo build --all --all-features

Expected behavior
Works well with 0.2.0 version.

Logs
Compiling rundler-contracts v0.4.0 (/Users/nish/Documents/Startale/rundler/crates/contracts)
error[E0080]: evaluation of constant value failed
--> crates/contracts/src/v0_7.rs:254:19
|
254 | Err(_) => panic!("Failed to decode entry point simulations hex"),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'Failed to decode entry point simulations hex', crates/contracts/src/v0_7.rs:254:19
|
= note: this error originates in the macro $crate::panic::panic_2021 which comes from the expansion of the macro panic (in Nightly builds, run with -Z macro-backtrace for more info)

note: erroneous constant encountered
--> crates/contracts/src/v0_7.rs:259:25
|
259 | Bytes::from_static(&__ENTRY_POINT_SIMULATIONS_V0_7_DEPLOYED_BYTECODE);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0080]: evaluation of constant value failed
--> crates/contracts/src/v0_7.rs:269:19
|
269 | Err(_) => panic!("Failed to decode call gas estimation proxy hex"),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'Failed to decode call gas estimation proxy hex', crates/contracts/src/v0_7.rs:269:19
|
= note: this error originates in the macro $crate::panic::panic_2021 which comes from the expansion of the macro panic (in Nightly builds, run with -Z macro-backtrace for more info)

note: erroneous constant encountered
--> crates/contracts/src/v0_7.rs:274:25
|
274 | Bytes::from_static(&__CALL_GAS_ESTIMATION_PROXY_V0_7_DEPLOYED_BYTECODE);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try rustc --explain E0080.
error: could not compile rundler-contracts (lib) due to 2 previous errors

@web3nish web3nish added bug Something isn't working needs-triage Issue needs triage labels Dec 31, 2024
@dancoombs dancoombs removed the needs-triage Issue needs triage label Jan 6, 2025
@dancoombs dancoombs added this to the v0.5 milestone Jan 6, 2025
@dancoombs dancoombs self-assigned this Jan 6, 2025
@dancoombs
Copy link
Collaborator

We should be fixing this soon. The workaround in the meantime is to install an older version of Foundry. Our CI uses

foundryup -i nightly-fe2acca4e379793539db80e032d76ffe0110298b

@dancoombs dancoombs linked a pull request Jan 7, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants