Skip to content

Commit

Permalink
update revm to v36 (#1290)
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsing authored May 27, 2024
1 parent 4658b6e commit 452fab5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 22 deletions.
28 changes: 14 additions & 14 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ strum_macros = "0.25"
subtle = "2.4"
tokio = { version = "1.13", features = ["macros", "rt-multi-thread"] }
url = "2.2"
revm-precompile = { git = "https://github.com/scroll-tech/revm", rev = "e1e8f7a", default-features = false, features = ["std"] } # v35
revm-primitives = { git = "https://github.com/scroll-tech/revm", rev = "e1e8f7a", default-features = false, features = ["std"] } # v35
c-kzg = "1.0.0"
revm-precompile = { git = "https://github.com/scroll-tech/revm", branch = "scroll-evm-executor/v36", default-features = false, features = ["std"] } # v36
revm-primitives = { git = "https://github.com/scroll-tech/revm", branch = "scroll-evm-executor/v36", default-features = false, features = ["std"] } # v36
c-kzg = "1.0.2"

[patch.crates-io]
ethers-core = { git = "https://github.com/scroll-tech/ethers-rs.git", branch = "v2.0.7" }
Expand Down
7 changes: 2 additions & 5 deletions eth-types/src/l2_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ impl From<&TransactionTrace> for revm_primitives::TxEnv {
gas_price: revm_primitives::U256::from_be_bytes(tx.gas_price.to_be_bytes()),
transact_to: match tx.to {
Some(to) => revm_primitives::TransactTo::Call(to.0.into()),
None => revm_primitives::TransactTo::Create(revm_primitives::CreateScheme::Create),
None => revm_primitives::TransactTo::Create,
},
value: revm_primitives::U256::from_be_bytes(tx.value.to_be_bytes()),
data: revm_primitives::Bytes::copy_from_slice(tx.data.as_ref()),
Expand Down Expand Up @@ -239,10 +239,7 @@ impl From<&TransactionTrace> for revm_primitives::TxEnv {
gas_priority_fee: tx
.gas_tip_cap
.map(|g| revm_primitives::U256::from_be_bytes(g.to_be_bytes())),
blob_hashes: vec![],
max_fee_per_blob_gas: None,
#[cfg(feature = "scroll")]
scroll: revm_primitives::ScrollFields::default(),
..Default::default()
}
}
}
Expand Down

0 comments on commit 452fab5

Please sign in to comment.