From f3991e1e725a98a818709e3e1f7354a2de0cd0c9 Mon Sep 17 00:00:00 2001 From: albertov19 <64150856+albertov19@users.noreply.github.com> Date: Wed, 29 Nov 2023 10:59:39 +0100 Subject: [PATCH] Fixes Chopsticks Block Produciton Syntax (#38) --- src/tools/fast-execute-chopstick-proposal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/fast-execute-chopstick-proposal.ts b/src/tools/fast-execute-chopstick-proposal.ts index 018afd6..3d5d7ed 100644 --- a/src/tools/fast-execute-chopstick-proposal.ts +++ b/src/tools/fast-execute-chopstick-proposal.ts @@ -199,7 +199,7 @@ const main = async () => { (await api.rpc.chain.getHeader()).number.toNumber() + 1 )}` ); - await api.rpc("dev_newBlock", 1); + await api.rpc("dev_newBlock", { count: 1 }); // Fast forward the scheduled proposal console.log( @@ -214,7 +214,7 @@ const main = async () => { (await api.rpc.chain.getHeader()).number.toNumber() + 1 )}` ); - await api.rpc("dev_newBlock", 1); + await api.rpc("dev_newBlock", { count: 1 }); await api.disconnect(); process.exit(0); };