From d813e73ecb7fb535c8e85bfeef7711ee13c465eb Mon Sep 17 00:00:00 2001 From: Andrei Maiboroda Date: Wed, 5 Jun 2024 14:40:07 +0200 Subject: [PATCH] Remove redundant has_full_data() check from TXCREATE The check is now part of validation of toplevel container. For creation transaction this is still required to be checked before validation to find out container/input data split. --- lib/evmone/instructions_calls.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/evmone/instructions_calls.cpp b/lib/evmone/instructions_calls.cpp index 49bef26db9..5e81e742fc 100644 --- a/lib/evmone/instructions_calls.cpp +++ b/lib/evmone/instructions_calls.cpp @@ -402,10 +402,6 @@ Result create_eof_impl( const auto error_subcont = validate_eof(state.rev, initcontainer); if (error_subcont != EOFValidationError::success) return {EVMC_SUCCESS, gas_left}; // "Light" failure. - - const auto initcontainer_header = read_valid_eof1_header(initcontainer); - if (!initcontainer_header.has_full_data(initcontainer.size())) - return {EVMC_SUCCESS, gas_left}; // "Light" failure. } evmc_message msg{.kind = to_call_kind(Op)};