Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes #1674

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

changes #1674

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cairo_zero/kakarot/instructions/block_information.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion cairo_zero/kakarot/instructions/system_operations.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading