-
Notifications
You must be signed in to change notification settings - Fork 28
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
feat: integrate revm + impl address recovery #73
Conversation
@@ -1,14 +1,99 @@ | |||
pub fn add(left: usize, right: usize) -> usize { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we wanted to avoid to many crates so we were adding evm code to core
.
crates/evm/src/lib.rs
Outdated
let acc_info = RevmAccountInfo { | ||
balance: U256::from_limbs(account.info.balance.0), | ||
code_hash: account.info.code_hash.0.into(), | ||
code: Some(Bytecode::new_raw(account.code.clone().into())), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code it optional right? Depending on if the address is a smart contract or a EOA?
sorry, didn't realize this was a draft 😅 |
…d of genesis block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great work! 🙌
**Motivation** Replace evm code in eftests with an implementation that uses ethrex types **Description** * Implement `execute_tx` using revm * Move `evm` crate into `core` crate * Move `Transaction` into its own module * Implement multiple getters for `Transaction` fields * Implement address recovery from signed transactions * Implement conversions between ef tests types and ethrex types * Add one more ef test <!-- Link to issues: Resolves lambdaclass#111, Resolves lambdaclass#222 --> Closes lambdaclass#21
Motivation
Replace evm code in eftests with an implementation that uses ethrex types
Description
execute_tx
using revmevm
crate intocore
crateTransaction
into its own moduleTransaction
fieldsCloses #21