Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
pefontana committed Sep 19, 2023
1 parent 9273a1d commit 0dd996d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/hints/usort_hints.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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)
Expand Down

0 comments on commit 0dd996d

Please sign in to comment.