From 0dd996d28403f94f8a55a2809355e4579bb4e262 Mon Sep 17 00:00:00 2001 From: Pedro Fontana Date: Tue, 19 Sep 2023 14:04:13 -0300 Subject: [PATCH] fmt --- pkg/hints/usort_hints.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/hints/usort_hints.go b/pkg/hints/usort_hints.go index ba1d0c67..371ec3d8 100644 --- a/pkg/hints/usort_hints.go +++ b/pkg/hints/usort_hints.go @@ -11,12 +11,6 @@ import ( func usort_enter_scope(executionScopes *types.ExecutionScopes) error { usort_max_size, err := executionScopes.Get("usort_max_size") - usort_max_size_felt, cast_ok := usort_max_size.(lambdaworks.Felt) - - if !cast_ok { - return errors.New("Error casting usort_max_size into a Felt") - } - if err != nil { return err } @@ -25,6 +19,12 @@ func usort_enter_scope(executionScopes *types.ExecutionScopes) error { executionScopes.EnterScope(make(map[string]interface{})) } + usort_max_size_felt, cast_ok := usort_max_size.(lambdaworks.Felt) + + if !cast_ok { + return errors.New("Error casting usort_max_size into a Felt") + } + scope := make(map[string]interface{}) scope["usort_max_size"] = usort_max_size_felt executionScopes.EnterScope(scope)