Skip to content

Commit

Permalink
Fixes of the last tests for the dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksymMalicki committed Jan 11, 2025
1 parent 07f4016 commit 53d4190
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pkg/hintrunner/core/hint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down

0 comments on commit 53d4190

Please sign in to comment.