@exodus/models
Advanced tools
Comparing version 11.7.0 to 11.8.0
@@ -97,3 +97,3 @@ "use strict"; | ||
} | ||
(0, _minimalisticAssert.default)(!compatibilityMode || source === 'seed', 'compatibilityMode can only be provided for source "seed"'); | ||
(0, _minimalisticAssert.default)(!compatibilityMode || SOFTWARE_SEED_SOURCES.includes(source), 'compatibilityMode can only be provided for software wallet accounts'); | ||
if (source !== EXODUS_SRC && is2FA) { | ||
@@ -131,3 +131,3 @@ throw new Error('is2FA: true is only valid for an exodus walletAccount'); | ||
toString() { | ||
return [this.source, this.index, this.id, this.compatibilityMode].filter(v => v != null).join('_'); | ||
return [this.source, this.index, this.id, this.source === SEED_SRC && this.compatibilityMode].filter(v => v != null && v !== false).join('_'); | ||
} | ||
@@ -134,0 +134,0 @@ toJSON() { |
{ | ||
"name": "@exodus/models", | ||
"version": "11.7.0", | ||
"version": "11.8.0", | ||
"description": "Exodus models", | ||
@@ -41,3 +41,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "6e8aa46a5b2fa4a46ab5a03eb03dfa1a6b1c7283" | ||
"gitHead": "5bd84273e226fdbbcf34260e2c87eeb41bfccaad" | ||
} |
102806