From a8bc274b10706b664a7cf4ca5fe1162620fe9cec Mon Sep 17 00:00:00 2001 From: Elin Tulchinsky Date: Sat, 13 Jul 2024 15:08:00 +0300 Subject: [PATCH] Add new builtins to `name` method. --- src/transaction.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/transaction.rs b/src/transaction.rs index 4a106ff..dde4b3d 100644 --- a/src/transaction.rs +++ b/src/transaction.rs @@ -987,6 +987,9 @@ const ECDSA_BUILTIN_NAME: &str = "ecdsa"; const BITWISE_BUILTIN_NAME: &str = "bitwise"; const KECCAK_BUILTIN_NAME: &str = "keccak"; const SEGMENT_ARENA_BUILTIN_NAME: &str = "segment_arena"; +const ADD_MOD_BUILTIN_NAME: &str = "add_mod"; +const MUL_MOD_BUILTIN_NAME: &str = "mul_mod"; +const RANGE_CHECK96_BUILTIN_NAME: &str = "range_check96"; impl Builtin { pub fn name(&self) -> &'static str { @@ -999,6 +1002,9 @@ impl Builtin { Builtin::Bitwise => BITWISE_BUILTIN_NAME, Builtin::Keccak => KECCAK_BUILTIN_NAME, Builtin::SegmentArena => SEGMENT_ARENA_BUILTIN_NAME, + Builtin::AddMod => ADD_MOD_BUILTIN_NAME, + Builtin::MulMod => MUL_MOD_BUILTIN_NAME, + Builtin::RangeCheck96 => RANGE_CHECK96_BUILTIN_NAME, } } }