Skip to content

Commit

Permalink
[Chore] : Fix Imports (#665)
Browse files Browse the repository at this point in the history
* Added all_cairo layout and RangeCheck96 tests

* Added a TODO

* nit
  • Loading branch information
Sh0g0-1758 authored Sep 19, 2024
1 parent 5f40559 commit e51153f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions pkg/vm/builtins/ecop.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"sort"

"github.com/NethermindEth/cairo-vm-go/pkg/utils"
"github.com/NethermindEth/cairo-vm-go/pkg/vm/memory"
mem "github.com/NethermindEth/cairo-vm-go/pkg/vm/memory"
"github.com/consensys/gnark-crypto/ecc/stark-curve/fp"
"github.com/holiman/uint256"
Expand Down Expand Up @@ -247,7 +246,7 @@ type AirPrivateBuiltinEcOp struct {
QY string `json:"q_y"`
}

func (e *EcOp) GetAirPrivateInput(ecOpSegment *memory.Segment) []AirPrivateBuiltinEcOp {
func (e *EcOp) GetAirPrivateInput(ecOpSegment *mem.Segment) []AirPrivateBuiltinEcOp {
valueMapping := make(map[int]AirPrivateBuiltinEcOp)
for index, value := range ecOpSegment.Data {
if !value.Known() {
Expand Down
3 changes: 1 addition & 2 deletions pkg/vm/builtins/pedersen.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"math/big"
"sort"

"github.com/NethermindEth/cairo-vm-go/pkg/vm/memory"
mem "github.com/NethermindEth/cairo-vm-go/pkg/vm/memory"
pedersenhash "github.com/consensys/gnark-crypto/ecc/stark-curve/pedersen-hash"
)
Expand Down Expand Up @@ -73,7 +72,7 @@ type AirPrivateBuiltinPedersen struct {
Y string `json:"y"`
}

func (p *Pedersen) GetAirPrivateInput(pedersenSegment *memory.Segment) []AirPrivateBuiltinPedersen {
func (p *Pedersen) GetAirPrivateInput(pedersenSegment *mem.Segment) []AirPrivateBuiltinPedersen {
valueMapping := make(map[int]AirPrivateBuiltinPedersen)
for index, value := range pedersenSegment.Data {
if !value.Known() {
Expand Down
3 changes: 1 addition & 2 deletions pkg/vm/builtins/poseidon.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"math/big"
"sort"

"github.com/NethermindEth/cairo-vm-go/pkg/vm/memory"
mem "github.com/NethermindEth/cairo-vm-go/pkg/vm/memory"
"github.com/consensys/gnark-crypto/ecc/stark-curve/fp"
)
Expand Down Expand Up @@ -74,7 +73,7 @@ type AirPrivateBuiltinPoseidon struct {
InputS2 string `json:"input_s2"`
}

func (p *Poseidon) GetAirPrivateInput(poseidonSegment *memory.Segment) []AirPrivateBuiltinPoseidon {
func (p *Poseidon) GetAirPrivateInput(poseidonSegment *mem.Segment) []AirPrivateBuiltinPoseidon {
valueMapping := make(map[int]AirPrivateBuiltinPoseidon)
for index, value := range poseidonSegment.Data {
if !value.Known() {
Expand Down

0 comments on commit e51153f

Please sign in to comment.