From 2aed1baddb66eb9b5da527651ef7f799bfd73296 Mon Sep 17 00:00:00 2001 From: Panagiotis Ganelis <50522617+PanGan21@users.noreply.github.com> Date: Tue, 29 Aug 2023 22:11:32 +0300 Subject: [PATCH] fix: change return error type of get_execution_resources to RunnerError (#1398) * fix change return error type of get_execution_resources to RunnerError * Update CHANGELOG.md Co-authored-by: fmoletta <99273364+fmoletta@users.noreply.github.com> --------- Co-authored-by: fmoletta <99273364+fmoletta@users.noreply.github.com> Co-authored-by: Pedro Fontana --- CHANGELOG.md | 2 ++ vm/src/vm/runners/cairo_runner.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff699027ca..faff8edec3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ #### Upcoming Changes +* fix: Change return type of `get_execution_resources` to `RunnerError` [#1398](https://github.com/lambdaclass/cairo-vm/pull/1398) + * Don't build wasm-demo in `build` target + add ci job to run the wasm demo [#1393](https://github.com/lambdaclass/cairo-vm/pull/1393) * Adds default-members to workspace diff --git a/vm/src/vm/runners/cairo_runner.rs b/vm/src/vm/runners/cairo_runner.rs index 3a561e8602..929571dc6a 100644 --- a/vm/src/vm/runners/cairo_runner.rs +++ b/vm/src/vm/runners/cairo_runner.rs @@ -868,7 +868,7 @@ impl CairoRunner { pub fn get_execution_resources( &self, vm: &VirtualMachine, - ) -> Result { + ) -> Result { let n_steps = match self.original_steps { Some(x) => x, None => vm