From 53d41909a76f0e1998c3c61aa11c5c529c08fba1 Mon Sep 17 00:00:00 2001 From: MaksymMalicki Date: Sat, 11 Jan 2025 16:08:29 +0100 Subject: [PATCH] Fixes of the last tests for the dicts --- pkg/hintrunner/core/hint.go | 3 ++- pkg/runner/runner.go | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/hintrunner/core/hint.go b/pkg/hintrunner/core/hint.go index b87c6fd7..dbc26392 100644 --- a/pkg/hintrunner/core/hint.go +++ b/pkg/hintrunner/core/hint.go @@ -1238,7 +1238,8 @@ func (hint *InitSquashData) Execute(vm *VM.VirtualMachine, ctx *hinter.HintRunne // todo(rodro): Don't know if it could be called multiple times, or err := hinter.InitializeSquashedDictionaryManager(ctx) if err != nil { - return err + ctx.SquashedDictionaryManager = hinter.SquashedDictionaryManager{} + _ = hinter.InitializeSquashedDictionaryManager(ctx) } dictAccessPtr, err := hinter.ResolveAsAddress(vm, hint.DictAccesses) diff --git a/pkg/runner/runner.go b/pkg/runner/runner.go index 80ee11bb..225f9266 100644 --- a/pkg/runner/runner.go +++ b/pkg/runner/runner.go @@ -316,9 +316,6 @@ func (runner *Runner) initializeVm( // run until the program counter equals the `pc` parameter func (runner *Runner) RunUntilPc(pc *mem.MemoryAddress) error { for !runner.vm.Context.Pc.Equal(pc) { - if runner.vm.Context.Pc.Offset == 166 { - runner.vm.PrintMemory() - } if runner.steps() >= runner.maxsteps { return fmt.Errorf( "pc %s step %d: max step limit exceeded (%d)",