From cb81c9beac3d0814c8476b34cdf2b31fefb58402 Mon Sep 17 00:00:00 2001 From: Nisheeth Barthwal Date: Tue, 30 Aug 2022 12:10:06 +0200 Subject: [PATCH 1/2] fix docs --- .../runtime-1603-fix-orphaned-delegation-request-keys.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/hotfixes/runtime-1603-fix-orphaned-delegation-request-keys.ts b/src/hotfixes/runtime-1603-fix-orphaned-delegation-request-keys.ts index 1d775cf..f4f066d 100644 --- a/src/hotfixes/runtime-1603-fix-orphaned-delegation-request-keys.ts +++ b/src/hotfixes/runtime-1603-fix-orphaned-delegation-request-keys.ts @@ -8,10 +8,7 @@ Ex: ./node_modules/.bin/ts-node-transpile-only src/hotfixes/runtime-1603-fix-orphaned-delegation-request-keys.ts \ --network alphanet \ - --send-preimage-hash \ - --send-proposal-as council-external \ - --collective-threshold 3 \ - --account-priv-key \ + --account-priv-key */ import yargs from "yargs"; import "@polkadot/api-augment"; @@ -28,7 +25,7 @@ const argv = yargs(process.argv.slice(2)) ...NETWORK_YARGS_OPTIONS, "account-priv-key": { type: "string", - demandOption: false, + demandOption: true, alias: "account", }, }).argv; From a7a28c594e6d6261567cfcb5c08c1e2ec233df34 Mon Sep 17 00:00:00 2001 From: Nisheeth Barthwal Date: Tue, 30 Aug 2022 13:43:58 +0200 Subject: [PATCH 2/2] fmt --- .../runtime-1603-fix-orphaned-delegation-request-keys.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotfixes/runtime-1603-fix-orphaned-delegation-request-keys.ts b/src/hotfixes/runtime-1603-fix-orphaned-delegation-request-keys.ts index f4f066d..ad9ea77 100644 --- a/src/hotfixes/runtime-1603-fix-orphaned-delegation-request-keys.ts +++ b/src/hotfixes/runtime-1603-fix-orphaned-delegation-request-keys.ts @@ -69,7 +69,7 @@ async function main() { .hotfixRemoveDelegationRequestsExitedCandidates(chunk) .signAsync(signer); - console.log(`batch ${(i % (chunkSize-1)) + 1}: ${chunk.join(", ")}`); + console.log(`batch ${(i % (chunkSize - 1)) + 1}: ${chunk.join(", ")}`); await waitTxDone(api, tx); } } finally {