Skip to content

Commit

Permalink
Fix loadData call during state initialization (keep-starknet-strang…
Browse files Browse the repository at this point in the history
…e#469)

* Fix loadData call during state initialization

* fix
  • Loading branch information
tcoratger authored Mar 16, 2024
1 parent 684e08c commit 7627888
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/vm/runners/cairo_runner.zig
Original file line number Diff line number Diff line change
Expand Up @@ -347,10 +347,9 @@ pub const CairoRunner = struct {
self.initial_pc = try pb.addInt(@intCast(entrypoint));

// Load program data into the program base segment.
_ = self.vm.segments.loadData(
self.allocator,
_ = self.vm.loadData(
pb,
self.program.shared_program_data.data.items,
&self.program.shared_program_data.data,
) catch return RunnerError.MemoryInitializationError;

// Mark memory addresses in the program base segment as accessed.
Expand Down

0 comments on commit 7627888

Please sign in to comment.