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

Can't build execution v0.5.1 in Rust project #303

Closed
micheleterziani opened this issue Nov 22, 2023 · 1 comment · Fixed by #304
Closed

Can't build execution v0.5.1 in Rust project #303

micheleterziani opened this issue Nov 22, 2023 · 1 comment · Fixed by #304

Comments

@micheleterziani
Copy link

Hello everyone, I'm trying to use Helios on my Rust project, I added the dependency in the .toml file from the github repo (version 0.5.1) but when i try to compile it gives me a series of errors, the first one appears to be an unresolved import of revm::primitives. This is the error:

error[E0432]: unresolved import `revm::primitives::B160`
  --> /Users/.cargo/git/checkouts/helios-b3bc464b79507b80/92fcdf0/execution/src/evm.rs:10:82
   |
10 |         AccountInfo, Bytecode, Env, ExecutionResult, ResultAndState, TransactTo, B160, B256, U256,
   |                                                                                  ^^^^ no `B160` in the root

Does anyone know what to do? I'm using VS Code and the build stops when trying to compile at execution/src/evm.rs:10:82

@ncitron
Copy link
Collaborator

ncitron commented Nov 22, 2023

Yeah this seems to be because revm, one of our dependencies, has introduced a breaking change without properly bumping their semver to denote that they have made such a change. For a quick fix you can try changing the revm version in your lock file to one that is lower (probably reducing the patch number of it). I'll try to see if there is a way for me to lock to a working version of revm in our main cargo.toml so that this happens automatically, but if that doesn't work we may have to just update our revm version and fix all of the changes.

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 a pull request may close this issue.

2 participants