Skip to content
This repository has been archived by the owner on Jul 10, 2023. It is now read-only.

Commit

Permalink
fix MAX_COPY_BYTES
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkiebell committed Jan 19, 2023
1 parent ecfd85f commit 2a0cb96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prover/tests/autogen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ macro_rules! estimate {
const KECCAK_WORD_GAS: usize = 6;
const COPY_GAS: usize = 3;
// TODO: doesn't account for instruction + memory expansion
const MAX_COPY_BYTES: usize = TX_GAS_LIMIT / COPY_GAS;
const MAX_COPY_BYTES: usize = (TX_GAS_LIMIT / COPY_GAS) * 32;
const MAX_COPY_ROWS: usize = (MAX_COPY_BYTES * 2) + 2;

let bytecode = $BYTECODE_FN(TX_GAS_LIMIT);
Expand Down

0 comments on commit 2a0cb96

Please sign in to comment.