Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit ad27230

Browse files
committed
comment tload - EndBlock.get_step_height is ok now
1 parent ad710ad commit ad27230

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

zkevm-circuits/src/evm_circuit/execution.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ pub struct ExecutionConfig<F> {
322322
signextend_gadget: Box<SignextendGadget<F>>,
323323
sload_gadget: Box<SloadGadget<F>>,
324324
sstore_gadget: Box<SstoreGadget<F>>,
325-
tload_gadget: Box<TloadGadget<F>>,
325+
// tload_gadget: Box<TloadGadget<F>>,
326326
tstore_gadget: Box<TstoreGadget<F>>,
327327
stop_gadget: Box<StopGadget<F>>,
328328
swap_gadget: Box<SwapGadget<F>>,
@@ -653,7 +653,7 @@ impl<F: Field> ExecutionConfig<F> {
653653
signextend_gadget: configure_gadget!(),
654654
sload_gadget: configure_gadget!(),
655655
sstore_gadget: configure_gadget!(),
656-
tload_gadget: configure_gadget!(),
656+
// tload_gadget: configure_gadget!(),
657657
tstore_gadget: configure_gadget!(),
658658
stop_gadget: configure_gadget!(),
659659
swap_gadget: configure_gadget!(),
@@ -1583,7 +1583,7 @@ impl<F: Field> ExecutionConfig<F> {
15831583
ExecutionState::SIGNEXTEND => assign_exec_step!(self.signextend_gadget),
15841584
ExecutionState::SLOAD => assign_exec_step!(self.sload_gadget),
15851585
ExecutionState::SSTORE => assign_exec_step!(self.sstore_gadget),
1586-
ExecutionState::TLOAD => assign_exec_step!(self.tload_gadget),
1586+
// ExecutionState::TLOAD => assign_exec_step!(self.tload_gadget),
15871587
ExecutionState::TSTORE => assign_exec_step!(self.tstore_gadget),
15881588
ExecutionState::STOP => assign_exec_step!(self.stop_gadget),
15891589
ExecutionState::SWAP => assign_exec_step!(self.swap_gadget),

zkevm-circuits/src/evm_circuit/execution/tload.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ pub(crate) struct TloadGadget<F> {
3434
impl<F: Field> ExecutionGadget<F> for TloadGadget<F> {
3535
const NAME: &'static str = "TLOAD";
3636

37-
const EXECUTION_STATE: ExecutionState = ExecutionState::TLOAD;
37+
const EXECUTION_STATE: ExecutionState = ExecutionState::ADDMOD; // TODO ExecutionState::TLOAD;
3838

3939
fn configure(cb: &mut EVMConstraintBuilder<F>) -> Self {
4040
let opcode = cb.query_cell();

zkevm-circuits/src/evm_circuit/step.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ pub enum ExecutionState {
119119
MSIZE,
120120
GAS,
121121
JUMPDEST,
122-
TLOAD,
122+
// TLOAD,
123123
TSTORE,
124124
/// PUSH0, PUSH1, PUSH2, ..., PUSH32
125125
PUSH,
@@ -311,7 +311,7 @@ impl From<&ExecStep> for ExecutionState {
311311
OpcodeId::SHL | OpcodeId::SHR => ExecutionState::SHL_SHR,
312312
OpcodeId::SLOAD => ExecutionState::SLOAD,
313313
OpcodeId::SSTORE => ExecutionState::SSTORE,
314-
OpcodeId::TLOAD => ExecutionState::TLOAD,
314+
// OpcodeId::TLOAD => ExecutionState::TLOAD,
315315
OpcodeId::TSTORE => ExecutionState::TSTORE,
316316
OpcodeId::CALLDATASIZE => ExecutionState::CALLDATASIZE,
317317
OpcodeId::CALLDATACOPY => ExecutionState::CALLDATACOPY,
@@ -510,7 +510,7 @@ impl ExecutionState {
510510
Self::MSIZE => vec![OpcodeId::MSIZE],
511511
Self::GAS => vec![OpcodeId::GAS],
512512
Self::JUMPDEST => vec![OpcodeId::JUMPDEST],
513-
Self::TLOAD => vec![OpcodeId::TLOAD],
513+
// Self::TLOAD => vec![OpcodeId::TLOAD],
514514
Self::TSTORE => vec![OpcodeId::TSTORE],
515515
Self::PUSH => vec![
516516
OpcodeId::PUSH0,

0 commit comments

Comments
 (0)