Skip to content

Commit

Permalink
Add secure_runner check (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementWalter authored Dec 29, 2024
1 parent 6473cc1 commit 38ffece
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cairo/tests/fixtures/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from starkware.cairo.lang.vm.cairo_runner import CairoRunner
from starkware.cairo.lang.vm.memory_dict import MemoryDict
from starkware.cairo.lang.vm.memory_segments import FIRST_MEMORY_ADDR as PROGRAM_BASE
from starkware.cairo.lang.vm.security import verify_secure_runner
from starkware.cairo.lang.vm.utils import RunResources

from tests.utils.args_gen import gen_arg as gen_arg_builder
Expand Down Expand Up @@ -254,6 +255,7 @@ def _factory(entrypoint, *args, **kwargs):
)
)
runner.finalize_segments()
verify_secure_runner(runner)

runner.relocate()
logger.info(
Expand Down

0 comments on commit 38ffece

Please sign in to comment.