mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 12:15:51 +00:00
JS: Fix UInt160 comparison.
This commit is contained in:
committed by
Stefan Thomas
parent
c0eec780de
commit
45c54b6484
@@ -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