Skip to content

Commit a350fab

Browse files
varun-doshiroyvardhan
authored andcommitted
feat:removed create address collision check (bluealloy#1928)
1 parent cace866 commit a350fab

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

crates/handler/src/frame.rs

-11
Original file line numberDiff line numberDiff line change
@@ -267,12 +267,6 @@ where
267267
}
268268
};
269269

270-
// created address is not allowed to be a precompile.
271-
// TODO add precompile check
272-
if precompile.contains(&created_address) {
273-
return return_error(InstructionResult::CreateCollision);
274-
}
275-
276270
// warm load account.
277271
context.journal().load_account(created_address)?;
278272

@@ -392,11 +386,6 @@ where
392386

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

395-
// created address is not allowed to be a precompile.
396-
if precompile.contains(&created_address) {
397-
return return_error(InstructionResult::CreateCollision);
398-
}
399-
400389
// Load account so it needs to be marked as warm for access list.
401390
context.journal().load_account(created_address)?;
402391

0 commit comments

Comments
 (0)