Skip to content

Commit

Permalink
Fix bytecode parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksymMalicki committed Sep 2, 2024
1 parent 76b0874 commit 49a8c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/runners/zero/program.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 49a8c93

Please sign in to comment.