From 49a8c93f427ee9df3cb8da0ef1a843189030c95c Mon Sep 17 00:00:00 2001 From: MaksymMalicki Date: Sun, 1 Sep 2024 20:33:23 -0600 Subject: [PATCH] Fix bytecode parsing --- pkg/runners/zero/program.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/runners/zero/program.go b/pkg/runners/zero/program.go index beb868fed..6e9681506 100644 --- a/pkg/runners/zero/program.go +++ b/pkg/runners/zero/program.go @@ -102,9 +102,9 @@ func scanIdentifiers(json *zero.ZeroProgram, f func(key string, ident *zero.Iden func LoadCairoProgram(cairoProgram *sn.StarknetProgram) (*Program, error) { bytecode := make([]*fp.Element, len(cairoProgram.Bytecode)) for i, felt := range cairoProgram.Bytecode { - bytecode[i] = &felt + f := felt + bytecode[i] = &f } - entrypoints := extractCairoEntryPoints(cairoProgram) builtins := extractCairoBuiltins(cairoProgram)