Skip to content

Commit

Permalink
Merge branch 'add_available_gas_and_user_args' into updage_go_version
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksymMalicki authored Dec 25, 2024
2 parents d220d26 + dc209dc commit 8f3cb2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/hintrunner/hintrunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ type HintRunner struct {
func NewHintRunner(hints map[uint64][]h.Hinter, userArgs []starknet.CairoFuncArgs) HintRunner {
context := *h.InitializeDefaultContext()
if userArgs != nil {
context.ScopeManager.AssignVariable("userArgs", userArgs)
err := context.ScopeManager.AssignVariable("userArgs", userArgs)
if err != nil {
panic(fmt.Errorf("assign userArgs: %v", err))
}
}
return HintRunner{
// Context for certain hints that require it. Each manager is
Expand Down

0 comments on commit 8f3cb2f

Please sign in to comment.