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

Commit

Permalink
Add TSTORE to set check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mason Liang committed Apr 30, 2024
1 parent 0105019 commit 4f9640a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl<F: Field> ExecutionGadget<F> for ErrorWriteProtectionGadget<F> {
let value = cb.query_word_unchecked();
let is_value_zero = cb.is_zero_word(&value);

// require_in_set method will spilit into more low degree expressions if exceed
// require_in_set method will split into more low degree expressions if exceed
// max_degree. otherwise need to do fixed lookup for these opcodes
// checking.
cb.require_in_set(
Expand All @@ -52,6 +52,7 @@ impl<F: Field> ExecutionGadget<F> for ErrorWriteProtectionGadget<F> {
vec![
OpcodeId::CALL.expr(),
OpcodeId::SSTORE.expr(),
OpcodeId::TSTORE.expr(),
OpcodeId::CREATE.expr(),
OpcodeId::CREATE2.expr(),
OpcodeId::SELFDESTRUCT.expr(),
Expand Down

0 comments on commit 4f9640a

Please sign in to comment.