diff --git a/.changeset/wise-kangaroos-run.md b/.changeset/wise-kangaroos-run.md new file mode 100644 index 00000000..6d6f2821 --- /dev/null +++ b/.changeset/wise-kangaroos-run.md @@ -0,0 +1,5 @@ +--- +"@moonwall/cli": patch +--- + +minor fix diff --git a/packages/cli/package.json b/packages/cli/package.json index aa7e37c6..4651bce8 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -39,12 +39,7 @@ "node": ">=20", "pnpm": ">=7" }, - "files": [ - "dist", - "bin", - "*.d.ts", - "*.mjs" - ], + "files": ["dist", "bin", "*.d.ts", "*.mjs"], "scripts": { "clean": "rm -rf dist && rm -rf node_modules", "build": "pnpm exec rm -rf dist && tsup src --format esm --no-splitting --sourcemap && pnpm generate-types", diff --git a/packages/cli/src/lib/governanceProcedures.ts b/packages/cli/src/lib/governanceProcedures.ts index d1d0a651..d10aecd1 100644 --- a/packages/cli/src/lib/governanceProcedures.ts +++ b/packages/cli/src/lib/governanceProcedures.ts @@ -19,6 +19,7 @@ import type { PalletReferendaReferendumInfo, } from "@polkadot/types/lookup"; import { blake2AsHex } from "@polkadot/util-crypto"; +import { u8aToBigInt, u8aToNumber } from "@polkadot/util"; export const COUNCIL_MEMBERS: KeyringPair[] = [baltathar, charleth, dorothy]; export const COUNCIL_THRESHOLD = Math.ceil((COUNCIL_MEMBERS.length * 2) / 3); @@ -706,7 +707,9 @@ export const fastFowardToNextEvent = async (context: DevModeContext) => { if (key.isEmpty) { throw new Error("No items in scheduler.agenda"); } - const desiredHeight = Number(key.toHuman()); + const decodedKey: object = key.toHuman() as any; + + const desiredHeight = Number((decodedKey[0].valueOf() as string).replaceAll(",", "")); const currentHeight = (await context.pjsApi.rpc.chain.getHeader()).number.toNumber(); console.log( diff --git a/packages/types/package.json b/packages/types/package.json index b436656e..54a0b8b8 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -34,12 +34,7 @@ "node": ">=20", "pnpm": ">=7" }, - "files": [ - "dist", - "bin", - "*.d.ts", - "*.mjs" - ], + "files": ["dist", "bin", "*.d.ts", "*.mjs"], "scripts": { "clean": "rm -rf dist && rm -rf node_modules", "build": "rm -rf dist && tsup src --format esm --no-splitting --sourcemap && pnpm generate-types", diff --git a/packages/util/package.json b/packages/util/package.json index 213f1923..5932250b 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -34,12 +34,7 @@ "node": ">=20", "pnpm": ">=7" }, - "files": [ - "dist", - "bin", - "*.d.ts", - "*.mjs" - ], + "files": ["dist", "bin", "*.d.ts", "*.mjs"], "scripts": { "clean": "rm -rf dist && rm -rf node_modules", "build": "pnpm exec rm -rf dist && tsup src --format esm --no-splitting --sourcemap && pnpm generate-types",