Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Commit f7914f7

Browse files
committed
Update
1 parent 814315e commit f7914f7

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

zkevm-circuits/src/evm_circuit.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,7 @@ impl<F: Field> EvmCircuit<F> {
283283
}
284284
}
285285

286-
// the diff is from the num of valid opcodes: self-destruct?
287-
#[cfg(not(feature = "scroll"))]
288286
const FIXED_TABLE_ROWS_NO_BITWISE: usize = 3647;
289-
#[cfg(feature = "scroll")]
290-
const FIXED_TABLE_ROWS_NO_BITWISE: usize = 3646;
291287
const FIXED_TABLE_ROWS: usize = FIXED_TABLE_ROWS_NO_BITWISE + 3 * 65536;
292288

293289
impl<F: Field> SubCircuit<F> for EvmCircuit<F> {

zkevm-circuits/src/evm_circuit/step.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,14 @@ impl ExecutionState {
269269
Self::BLOCKHASH => vec![OpcodeId::BLOCKHASH],
270270
Self::BLOCKCTXU64 => vec![OpcodeId::TIMESTAMP, OpcodeId::NUMBER, OpcodeId::GASLIMIT],
271271
Self::BLOCKCTXU160 => vec![OpcodeId::COINBASE],
272-
#[cfg(not(feature = "scroll"))]
273-
Self::BLOCKCTXU256 => vec![OpcodeId::DIFFICULTY, OpcodeId::BASEFEE],
272+
Self::BLOCKCTXU256 => {
273+
if cfg!(feature = "scroll") {
274+
vec![OpcodeId::BASEFEE]
275+
} else {
276+
vec![OpcodeId::DIFFICULTY, OpcodeId::BASEFEE]
277+
}
278+
}
279+
#[cfg(feature = "scroll")]
274280
Self::DIFFICULTY => vec![OpcodeId::DIFFICULTY],
275281
Self::CHAINID => vec![OpcodeId::CHAINID],
276282
Self::SELFBALANCE => vec![OpcodeId::SELFBALANCE],

0 commit comments

Comments
 (0)