Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
simplify EXTCODECOPY to return original bytes including address, EXTC…
…ODEHASH as well
  • Loading branch information
Elijah Hampton committed Jan 26, 2025
commit f09f3c5c0c423740d9e601e0bd43fe965fb28f15
10 changes: 0 additions & 10 deletions crates/revm/src/context/inner_evm_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,6 @@ impl<DB: Database> InnerEvmContext<DB> {

let code = if code.is_eof() {
EOF_MAGIC_BYTES.clone()
} else if code.is_eip7702() {
// Reserve 23 bytes for EIP7702_MAGIC_BYTES (2 bytes) + EIP7702_VERSION (1 byte)
// + address (20 bytes)
let mut bytes = Vec::with_capacity(23);
bytes.extend_from_slice(&EIP7702_MAGIC_BYTES);
bytes.push(EIP7702_VERSION);
bytes.extend_from_slice(address.as_slice());
bytes.into()
} else {
code.original_bytes()
};
Expand All @@ -213,8 +205,6 @@ impl<DB: Database> InnerEvmContext<DB> {

let hash = if code.is_eof() {
EOF_MAGIC_HASH
} else if code.is_eip7702() {
EIP7702_MAGIC_HASH
} else {
acc.info.code_hash
};
Expand Down
Loading