From c2f6a8bdff03fc64aeadcaffee40183217c5cb4d Mon Sep 17 00:00:00 2001 From: "fuder.eth" <139509124+vtjl10@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:28:38 +0100 Subject: [PATCH 1/2] Update stack.cairo --- cairo/kakarot-ssj/crates/evm/src/stack.cairo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cairo/kakarot-ssj/crates/evm/src/stack.cairo b/cairo/kakarot-ssj/crates/evm/src/stack.cairo index 74ddcba68..e72973faf 100644 --- a/cairo/kakarot-ssj/crates/evm/src/stack.cairo +++ b/cairo/kakarot-ssj/crates/evm/src/stack.cairo @@ -205,7 +205,7 @@ impl StackImpl of StackTrait { /// /// # Errors /// - /// If the stack length is less than than N, returns with a StackUnderflow error. + /// If the stack length is less than N, returns with a StackUnderflow error. fn pop_n(ref self: Stack, mut n: usize) -> Result, EVMError> { ensure(!(n > self.len()), EVMError::StackUnderflow)?; let mut popped_items = ArrayTrait::::new(); From 242930f71cda3be37b8c06ae4d436c597dc7a1d5 Mon Sep 17 00:00:00 2001 From: "fuder.eth" <139509124+vtjl10@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:29:12 +0100 Subject: [PATCH 2/2] Update test_gas.py --- cairo_zero/tests/src/kakarot/test_gas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cairo_zero/tests/src/kakarot/test_gas.py b/cairo_zero/tests/src/kakarot/test_gas.py index 5b813d7eb..a8057e508 100644 --- a/cairo_zero/tests/src/kakarot/test_gas.py +++ b/cairo_zero/tests/src/kakarot/test_gas.py @@ -65,7 +65,7 @@ def test_should_return_max_expansion_cost( ) # If the memory expansion is greater than 2**27 words of 32 bytes - # We saturate it to the hardcoded value corresponding the the gas cost of a 2**32 memory size + # We saturate it to the hardcoded value corresponding the gas cost of a 2**32 memory size expected_saturated = ( memory_cost_u32 if (words_len * 32 + expansion.expand_by) >= 2**32