mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-28 06:25:49 +00:00
JS: Fix UInt160 comparison.
This commit is contained in:
@@ -152,7 +152,7 @@ UInt160.prototype.copyTo = function(d) {
|
||||
};
|
||||
|
||||
UInt160.prototype.equals = function(d) {
|
||||
return this.value === d.value;
|
||||
return isNaN(this.value) || isNaN(d.value) ? false : this.value.equals(d.value);
|
||||
};
|
||||
|
||||
// value = NaN on error.
|
||||
|
||||
Reference in New Issue
Block a user