diff --git a/package-lock.json b/package-lock.json index 80068ea..32e64d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@oclif/plugin-help": "6.2.36", "@oclif/plugin-not-found": "3.2.73", "@oclif/table": "0.5.1", - "@pkcprotocol/pkc-js": "0.0.83", + "@pkcprotocol/pkc-js": "0.0.85", "dataobject-parser": "1.2.22", "decompress": "4.2.1", "env-paths": "2.2.1", @@ -5850,9 +5850,9 @@ } }, "node_modules/@pkcprotocol/pkc-js": { - "version": "0.0.83", - "resolved": "https://registry.npmjs.org/@pkcprotocol/pkc-js/-/pkc-js-0.0.83.tgz", - "integrity": "sha512-vh6N/7hheXr7hmxLjn0GIsP6hPYkEg/ya96Q5ECjVV8Qy3Av6gJ92/k4TecjVC0C0NCHs/g77jYeWXHCNvgGSA==", + "version": "0.0.85", + "resolved": "https://registry.npmjs.org/@pkcprotocol/pkc-js/-/pkc-js-0.0.85.tgz", + "integrity": "sha512-6fC0VODN7omo6tYoXSds3qp+fclULQRwLFeSP7e6ZKfLV8rt5S2efd6qSTaPWZujHrWwFRl42B3wb9sA9DTn4A==", "license": "GPL-3.0-or-later", "dependencies": { "@enhances/with-resolvers": "0.0.5", @@ -5873,8 +5873,8 @@ "assert": "2.1.0", "better-sqlite3": "12.9.0", "blockstore-core": "7.0.1", - "blockstore-fs": "^4.0.1", - "blockstore-idb": "^4.0.1", + "blockstore-fs": "4.0.1", + "blockstore-idb": "4.0.1", "buffer": "6.0.3", "cbor": "10.0.11", "cborg": "4.5.8", diff --git a/package.json b/package.json index 6c3ccb0..53c8eda 100644 --- a/package.json +++ b/package.json @@ -119,7 +119,7 @@ "@oclif/plugin-help": "6.2.36", "@oclif/plugin-not-found": "3.2.73", "@oclif/table": "0.5.1", - "@pkcprotocol/pkc-js": "0.0.83", + "@pkcprotocol/pkc-js": "0.0.85", "dataobject-parser": "1.2.22", "decompress": "4.2.1", "env-paths": "2.2.1", diff --git a/test/cli/mintpass-integration.test.ts b/test/cli/mintpass-integration.test.ts index 89d96da..a3d856c 100644 --- a/test/cli/mintpass-integration.test.ts +++ b/test/cli/mintpass-integration.test.ts @@ -178,7 +178,20 @@ describe.skipIf(process.platform === "win32")("@bitsocial/mintpass-challenge int const sub = await pkc.createCommunity(); await sub.edit({ settings: { - challenges: [{ name: "@bitsocial/mintpass-challenge" }] + challenges: [ + { + name: "@bitsocial/mintpass-challenge", + // pkc-js >= 0.0.85 validates settings.challenges against each challenge file's + // optionInputs, and mintpass marks these three `required`. `default` there is a UI + // hint that core never applies, so they have to be passed explicitly. The values + // match the package's own runtime fallbacks, so challenge behaviour is unchanged. + options: { + chainTicker: "base", + contractAddress: "0x13d41d6B8EA5C86096bb7a94C3557FCF184491b9", + requiredTokenType: "0" + } + } + ] } }); await sub.start();