lucid-extension-sdk 0.0.350 → 0.0.352
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -176,7 +176,7 @@ function insertNewChain(connectedChains, backMapping, anchorMapping, anchor, cha
|
|
|
176
176
|
var _a, _b, _c, _d;
|
|
177
177
|
const anchorBlockers = new Set([...chain].filter((key) => anchorMapping.has(key)).map((key) => { var _a, _b; return (_b = (_a = anchorMapping.get(key)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : -1; }));
|
|
178
178
|
const anchorMergeTarget = (_b = (_a = anchorMapping.get(anchor)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : -1;
|
|
179
|
-
const nonAnchorMergeTarget = anchor !== null ? (_d = (_c = backMapping.get(anchor)) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : -1 : -1;
|
|
179
|
+
const nonAnchorMergeTarget = anchor !== null ? ((_d = (_c = backMapping.get(anchor)) === null || _c === void 0 ? void 0 : _c[0]) !== null && _d !== void 0 ? _d : -1) : -1;
|
|
180
180
|
const targetIndex = Math.max(anchorMergeTarget, nonAnchorMergeTarget);
|
|
181
181
|
const isAnchorTarget = targetIndex !== nonAnchorMergeTarget;
|
|
182
182
|
const mostRecentBlocker = Math.max(...anchorBlockers);
|