Skip to content

Commit

Permalink
Unit and Integration Tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Sh0g0-1758 committed Aug 23, 2024
1 parent db0bf4b commit 839955a
Show file tree
Hide file tree
Showing 21 changed files with 264 additions and 249 deletions.
6 changes: 3 additions & 3 deletions pkg/hintrunner/core/cairo_hintparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/consensys/gnark-crypto/ecc/stark-curve/fp"
)

func parseCellRefer(cr starknet.CellRef) hinter.CellRefer {
func parseCellRefer(cr starknet.CellRef) hinter.Reference {
switch cr.Register {
case starknet.AP:
return hinter.ApCellRef(cr.Offset)
Expand Down Expand Up @@ -49,7 +49,7 @@ func parseBinOp(ro starknet.ResOperand) hinter.BinaryOp {
a := hinter.Deref{
Deref: parseCellRefer(binOp.A),
}
var b hinter.ResOperander = nil
var b hinter.Reference = nil
switch binOp.B.Inner.(type) {
case *starknet.Deref:
b = &hinter.Deref{
Expand All @@ -74,7 +74,7 @@ func parseBinOp(ro starknet.ResOperand) hinter.BinaryOp {
}
}

func parseResOperand(ro starknet.ResOperand) hinter.ResOperander {
func parseResOperand(ro starknet.ResOperand) hinter.Reference {
switch ro.Name {
case starknet.DerefName:
return parseDeref(ro)
Expand Down
Loading

0 comments on commit 839955a

Please sign in to comment.