We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b29b9f commit 4019a50Copy full SHA for 4019a50
crates/starknet-types-core/src/curve/affine_point.rs
@@ -44,12 +44,12 @@ impl AffinePoint {
44
45
/// Returns the `x` coordinate of the point.
46
pub fn x(&self) -> Felt {
47
- Felt(*self.0.x())
+ Felt(*self.0.to_affine().x())
48
}
49
50
/// Returns the `y` coordinate of the point.
51
pub fn y(&self) -> Felt {
52
- Felt(*self.0.y())
+ Felt(*self.0.to_affine().y())
53
54
55
// Returns the generator point of the StarkCurve
@@ -70,7 +70,7 @@ impl core::ops::Add<AffinePoint> for AffinePoint {
70
type Output = AffinePoint;
71
72
fn add(self, rhs: Self) -> Self::Output {
73
- AffinePoint(self.0.operate_with_affine(&rhs.0))
+ AffinePoint(self.0.operate_with(&rhs.0))
74
75
76
0 commit comments