Skip to content

Commit 0a3b1e0

Browse files
committed
Remove redundant can_init() check from TXCREATE
The check is now part of validation when ContainerKind::initcode is requested. For creation transaction this is still required to be checked before validation to find out container/input data split.
1 parent c697bb1 commit 0a3b1e0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/evmone/instructions_calls.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,6 @@ Result create_eof_impl(
402402
const auto error_subcont = validate_eof(state.rev, ContainerKind::initcode, initcontainer);
403403
if (error_subcont != EOFValidationError::success)
404404
return {EVMC_SUCCESS, gas_left}; // "Light" failure.
405-
406-
const auto initcontainer_header = read_valid_eof1_header(initcontainer);
407-
if (!initcontainer_header.can_init(initcontainer.size()))
408-
return {EVMC_SUCCESS, gas_left}; // "Light" failure.
409405
}
410406

411407
evmc_message msg{.kind = to_call_kind(Op)};

0 commit comments

Comments
 (0)