Skip to content

Commit 01eca77

Browse files
authored
eof: Don't re-parse EOF header in RETURNCONTRACT (#1002)
1 parent fd1d149 commit 01eca77

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/evmone/instructions.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,9 +1174,8 @@ inline TermResult returncontract(
11741174
return {EVMC_OUT_OF_GAS, gas_left};
11751175

11761176
const auto deploy_container_index = size_t{pos[1]};
1177-
1178-
const auto header = read_valid_eof1_header(state.original_code);
1179-
bytes deploy_container{header.get_container(state.original_code, deploy_container_index)};
1177+
bytes deploy_container{state.analysis.baseline->eof_header().get_container(
1178+
state.original_code, deploy_container_index)};
11801179

11811180
// Append (offset, size) to data section
11821181
if (!append_data_section(deploy_container,

0 commit comments

Comments
 (0)