Skip to content

Commit

Permalink
feat:removed create address collision check (#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
varun-doshi authored Dec 19, 2024
1 parent 1f6d438 commit 2ff3d65
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions crates/handler/src/frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,6 @@ where
}
};

// created address is not allowed to be a precompile.
// TODO add precompile check
if precompile.contains(&created_address) {
return return_error(InstructionResult::CreateCollision);
}

// warm load account.
context.journal().load_account(created_address)?;

Expand Down Expand Up @@ -392,11 +386,6 @@ where

let created_address = created_address.unwrap_or_else(|| inputs.caller.create(old_nonce));

// created address is not allowed to be a precompile.
if precompile.contains(&created_address) {
return return_error(InstructionResult::CreateCollision);
}

// Load account so it needs to be marked as warm for access list.
context.journal().load_account(created_address)?;

Expand Down

0 comments on commit 2ff3d65

Please sign in to comment.