apow-cli 0.11.8 → 0.11.9
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.
- package/dist/mint.js +6 -3
- package/package.json +1 -1
package/dist/mint.js
CHANGED
|
@@ -181,9 +181,12 @@ async function runMintFlow(options = {}) {
|
|
|
181
181
|
// Solve SMHL
|
|
182
182
|
const challenge = deriveChallengeFromSeed(challengeSeed);
|
|
183
183
|
const smhlSpinner = ui.spinner("Solving SMHL...");
|
|
184
|
-
const solution =
|
|
185
|
-
|
|
186
|
-
|
|
184
|
+
const solution = (0, smhl_1.solveSmhlAlgorithmic)(challenge);
|
|
185
|
+
const issues = (0, smhl_1.validateSmhlSolution)(solution, challenge);
|
|
186
|
+
if (issues.length > 0) {
|
|
187
|
+
smhlSpinner.fail("Solving SMHL failed");
|
|
188
|
+
throw new Error(`SMHL generation failed: ${issues.join(", ")}`);
|
|
189
|
+
}
|
|
187
190
|
smhlSpinner.stop("Solving SMHL... done");
|
|
188
191
|
// Mint
|
|
189
192
|
const mintSpinner = ui.spinner("Minting...");
|