Skip to content

Commit

Permalink
little fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pefontana committed Oct 23, 2023
1 parent c9a337b commit fd14bf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/starknet-types-core/src/curve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl ProjectivePoint {

/// Returns the `x` coordinate of the point.
pub fn x(&self) -> &FieldElement<Stark252PrimeField> {
self.0.y()
self.0.x()
}

/// Returns the `y` coordinate of the point.
Expand All @@ -42,7 +42,7 @@ impl ProjectivePoint {

/// Returns the `z` coordinate of the point.
pub fn z(&self) -> &FieldElement<Stark252PrimeField> {
self.0.y()
self.0.z()
}
}

Expand Down Expand Up @@ -73,7 +73,7 @@ impl AffinePoint {

/// Returns the `x` coordinate of the point.
pub fn x(&self) -> &FieldElement<Stark252PrimeField> {
self.0.y()
self.0.x()
}

/// Returns the `y` coordinate of the point.
Expand Down

0 comments on commit fd14bf5

Please sign in to comment.