From d7b3fab2681fc514b72b348a75ab1c6ca01e9509 Mon Sep 17 00:00:00 2001 From: Ermal Kaleci Date: Wed, 10 Jan 2024 18:19:08 +0100 Subject: [PATCH] Build first block for genesis (#627) --- packages/core/src/setup.ts | 2 ++ packages/e2e/src/__snapshots__/genesis-provider.test.ts.snap | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/src/setup.ts b/packages/core/src/setup.ts index b51fdd12..1d18a887 100644 --- a/packages/core/src/setup.ts +++ b/packages/core/src/setup.ts @@ -70,6 +70,8 @@ export const genesisSetup = async (chain: Blockchain, genesis: GenesisProvider) const digest = meta.registry.createType('DigestItem', { PreRuntime: [consensusEngine, newSlot] }) genesis.genesisHeaderLogs = [digest.toHex()] } + + await chain.newBlock() } export const setup = async (options: SetupOptions) => { diff --git a/packages/e2e/src/__snapshots__/genesis-provider.test.ts.snap b/packages/e2e/src/__snapshots__/genesis-provider.test.ts.snap index 93602659..000e54ce 100644 --- a/packages/e2e/src/__snapshots__/genesis-provider.test.ts.snap +++ b/packages/e2e/src/__snapshots__/genesis-provider.test.ts.snap @@ -24,7 +24,7 @@ exports[`genesis provider works Kusama > genesis provider works > handles tx 2`] "consumers": 0, "data": { "flags": "0x80000000000000000000000000000000", - "free": 876999432127266, + "free": 876999432128101, "frozen": 0, "reserved": 0, }, @@ -71,7 +71,7 @@ exports[`genesis provider works Mandala > genesis provider works > handles tx 2` "consumers": 0, "data": { "feeFrozen": 0, - "free": 876982732391839, + "free": 876982732395758, "miscFrozen": 0, "reserved": 0, },