@exodus/models
Advanced tools
Comparing version
@@ -6,2 +6,8 @@ # Change Log | ||
## [12.1.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/models@12.1.0...@exodus/models@12.1.1) (2024-10-10) | ||
### Bug Fixes | ||
- TxSet check equal when overwriting transactions ([#9879](https://github.com/ExodusMovement/exodus-hydra/issues/9879)) ([9f7f92c](https://github.com/ExodusMovement/exodus-hydra/commit/9f7f92c1f28570f3d9f9cbcd005de1056ef26fc9)) | ||
## [12.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/models@12.0.1...@exodus/models@12.1.0) (2024-10-02) | ||
@@ -8,0 +14,0 @@ |
{ | ||
"name": "@exodus/models", | ||
"version": "12.1.0", | ||
"version": "12.1.1", | ||
"description": "Exodus models", | ||
@@ -27,4 +27,3 @@ "type": "module", | ||
"@exodus/assets-base": "^10.0.0", | ||
"bs58check": "^2.1.2", | ||
"lodash": "^4.17.11" | ||
"bs58check": "^2.1.2" | ||
}, | ||
@@ -43,3 +42,3 @@ "scripts": { | ||
}, | ||
"gitHead": "14738f4b803ffd115b3328d0b180f7fa186b91c7" | ||
"gitHead": "9913050397e7532e268316f5cf8f306af913bae2" | ||
} |
@@ -90,6 +90,11 @@ import assert from 'minimalistic-assert' | ||
return [...this].every((tx) => { | ||
for (let i = this.size - 1; i >= 0; i--) { | ||
const tx = this.getAt(i) | ||
const match = otherSet.get(tx) | ||
if (match) return tx === match || tx.equals(match) | ||
}) | ||
if (!match || !(tx === match || tx.equals(match))) { | ||
return false | ||
} | ||
} | ||
return true | ||
} | ||
@@ -96,0 +101,0 @@ |
112708
0.39%3
-25%2528
0.16%