Skip to content

Commit

Permalink
fix: 🐛 Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
timbrinded committed May 22, 2024
1 parent 2daffcb commit b0a77dc
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 29 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"prepublish": "pnpm run build && pnpm run generate-types"
},
"dependencies": {
"@acala-network/chopsticks": "0.9.13",
"@acala-network/chopsticks": "0.10.2",
"@moonbeam-network/api-augment": "0.2902.0",
"@moonwall/types": "workspace:*",
"@moonwall/util": "workspace:*",
Expand Down
10 changes: 3 additions & 7 deletions packages/cli/src/lib/governanceProcedures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@ import {
import type { ApiPromise } from "@polkadot/api";
import type { ApiTypes, SubmittableExtrinsic } from "@polkadot/api/types";
import type { KeyringPair } from "@polkadot/keyring/types";
import type {
PalletDemocracyReferendumInfo,
PalletReferendaReferendumInfo,
} from "@polkadot/types/lookup";
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);
Expand Down Expand Up @@ -700,7 +696,7 @@ export const executeOpenTechCommitteeProposal = async (api: ApiPromise, encodedH

export const executeProposalWithCouncil = async (api: ApiPromise, encodedHash: string) => {
let nonce = (await api.rpc.system.accountNextIndex(alith.address)).toNumber();
const referendumNextIndex = (await api.query.democracy.referendumCount()).toNumber();
const referendumNextIndex = ((await api.query.democracy.referendumCount()) as any).toNumber();

const callData =
(api.consts.system.version as any).specVersion.toNumber() >= 2000
Expand Down Expand Up @@ -731,7 +727,7 @@ export const executeProposalWithCouncil = async (api: ApiPromise, encodedHash: s
process.stdout.write("✅\n");

process.stdout.write(`Waiting for referendum [${referendumNextIndex}] to be executed...`);
let referenda: PalletDemocracyReferendumInfo | undefined;
let referenda: any;
while (!referenda) {
try {
referenda = (
Expand Down
40 changes: 20 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"bun_test": "bun test suites/bun_test/*"
},
"devDependencies": {
"@acala-network/chopsticks": "0.9.13",
"@acala-network/chopsticks": "0.10.2",
"@biomejs/biome": "1.7.3",
"@moonbeam-network/api-augment": "0.2902.0",
"@moonwall/cli": "workspace:*",
Expand Down

0 comments on commit b0a77dc

Please sign in to comment.