Skip to content

Conversation

@RonTuretzky
Copy link
Contributor

Summary

  • Patches svm-rs and svm-rs-builds to use the fix from upstream PR alloy-rs/svm-rs#178 which ignores prereleases in svm-builds
  • Fixes build failure caused by duplicate SOLC_VERSION_0_8_31 constant definitions

Context

Upstream svm-rs-builds has a bug where solc version 0.8.31 appears twice in the solidity binaries list (once as prerelease, once as stable release), causing duplicate constant definitions and E0428 compilation errors.

Related: alloy-rs/svm-rs#177

Test plan

  • cargo clippy --all-targets --all-features -- -D warnings passes
  • cargo test passes
  • cargo fmt --all -- --check passes

Notes

This is a temporary fix until the upstream PR is merged and released. Once svm-rs-builds >= 0.5.22 (or whichever version includes the fix) is released, we can remove the [patch.crates-io] section.

Upstream svm-rs-builds has a bug where solc version 0.8.31 appears
twice in the solidity binaries list (once as prerelease, once as
stable), causing duplicate constant definitions and build failures.

This patches svm-rs and svm-rs-builds to use the fix from PR #178
which ignores prereleases in svm-builds.

Related: alloy-rs/svm-rs#177
@RonTuretzky
Copy link
Contributor Author

@bagelface

@bagelface bagelface merged commit 4836982 into main Dec 3, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants