Skip to content

Commit 87f177d

Browse files
committed
Fix end_transaction
1 parent 2fca8ff commit 87f177d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

crypto3/libs/blueprint/include/nil/blueprint/zkevm_bbf/input_generators/hardhat_input_generator.hpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -452,12 +452,9 @@ namespace nil {
452452
void end_transaction(const boost::property_tree::ptree &tt){
453453
append_modified_items_rw_operations();
454454
std::cout << "END TRANSACTION " << tx_id << std::endl;
455-
basic_zkevm_state_part base;
456-
base.call_id = tx_id; // RW counter on start_call
457-
base.bytecode_hash = bytecode_hash;
458-
base.opcode = opcode_to_number(zkevm_opcode::end_transaction);
459-
base.rw_counter = tx_id;
455+
current_opcode = opcode_to_number(zkevm_opcode::end_transaction);
460456

457+
auto base = get_basic_zkevm_state_part();
461458
auto call_context = get_call_header_state_part();
462459
auto returned_call = _call_stack.back();
463460
_call_stack.pop_back();
@@ -1375,4 +1372,4 @@ namespace nil {
13751372
};
13761373
} // namespace bbf
13771374
} // namespace blueprint
1378-
} // namespace nil
1375+
} // namespace nil

0 commit comments

Comments
 (0)