From 75e484aff0f9818ec2fc64dd1719c4703f6997e5 Mon Sep 17 00:00:00 2001 From: Maks Date: Mon, 23 Dec 2024 04:36:11 +0100 Subject: [PATCH 1/3] Update block_information.cairo --- cairo_zero/kakarot/instructions/block_information.cairo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cairo_zero/kakarot/instructions/block_information.cairo b/cairo_zero/kakarot/instructions/block_information.cairo index 258d44d1f..f43f47a76 100644 --- a/cairo_zero/kakarot/instructions/block_information.cairo +++ b/cairo_zero/kakarot/instructions/block_information.cairo @@ -17,7 +17,7 @@ from kakarot.stack import Stack from kakarot.state import State from utils.utils import Helpers -// @title BlockInformation information opcodes. +// @title BlockInformation opcodes. // @notice This file contains the functions to execute for block information opcodes. namespace BlockInformation { func exec_block_information{ From 2bc68ce7076a54d9c6cd7b3228f3063e6dc33c64 Mon Sep 17 00:00:00 2001 From: Maks Date: Mon, 23 Dec 2024 04:42:53 +0100 Subject: [PATCH 2/3] Update stop_and_math_operations.cairo --- .../kakarot/instructions/stop_and_math_operations.cairo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cairo_zero/kakarot/instructions/stop_and_math_operations.cairo b/cairo_zero/kakarot/instructions/stop_and_math_operations.cairo index 385ad728d..89c0a1a49 100644 --- a/cairo_zero/kakarot/instructions/stop_and_math_operations.cairo +++ b/cairo_zero/kakarot/instructions/stop_and_math_operations.cairo @@ -79,7 +79,7 @@ namespace StopAndMathOperations { // To cast the codeoffset opcodes_label to a model.Opcode*, we need to use it to offset // the current pc. We get the pc from the `get_fp_and_pc` util and assign a codeoffset (pc_label) to it. - // In short, this boilds down to: opcode = pc + offset - pc = offset + // In short, this boils down to: opcode = pc + offset - pc = offset let (_, pc) = get_fp_and_pc(); pc_label: @@ -91,7 +91,7 @@ namespace StopAndMathOperations { local stack: model.Stack* = stack; // offset is 1 (new line) + 2 (jmp + label) per opcode - // opcode is offset from by 0x1 (index of the first opcode) + // opcode is offset by 0x1 (index of the first opcode) tempvar offset = 2 * (opcode_number - 0x01) + 1; tempvar range_check_ptr = range_check_ptr; From 062f8ef3b7b354a5edd96d2fc18a89c49cba97db Mon Sep 17 00:00:00 2001 From: Maks Date: Mon, 23 Dec 2024 04:46:30 +0100 Subject: [PATCH 3/3] Update system_operations.cairo --- cairo_zero/kakarot/instructions/system_operations.cairo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cairo_zero/kakarot/instructions/system_operations.cairo b/cairo_zero/kakarot/instructions/system_operations.cairo index fe797568c..abf4c3482 100644 --- a/cairo_zero/kakarot/instructions/system_operations.cairo +++ b/cairo_zero/kakarot/instructions/system_operations.cairo @@ -1010,7 +1010,7 @@ namespace CallHelper { } if (evm.reverted == Errors.EXCEPTIONAL_HALT) { - // If the call has halted exceptionnaly, the return_data is empty + // If the call has halted exceptionally, the return_data is empty // and nothing is copied to memory, and the gas is not returned; tempvar evm = new model.EVM( message=message,