Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
Merge pull request #170 from matiu/bug/getX-Y
Browse files Browse the repository at this point in the history
Bug/get x y
  • Loading branch information
matiu committed Oct 27, 2017
2 parents e472cf0 + 5925c98 commit bbfd962
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions lib/crypto/point.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ Point.getN = function getN() {
return new BN(ec.curve.n.toArray());
};

Point.prototype._getX = Point.prototype.getX;
if (!Point.prototype._getX)
Point.prototype._getX = Point.prototype.getX;

/**
*
Expand All @@ -85,7 +86,8 @@ Point.prototype.getX = function getX() {
return new BN(this._getX().toArray());
};

Point.prototype._getY = Point.prototype.getY;
if (!Point.prototype._getY)
Point.prototype._getY = Point.prototype.getY;

/**
*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bitcore-lib-cash",
"version": "0.15.0",
"version": "0.15.1",
"description": "A pure and powerful JavaScript Bitcoin Cash library.",
"author": "BitPay <dev@bitpay.com>",
"main": "index.js",
Expand Down

0 comments on commit bbfd962

Please sign in to comment.