From c76e8044d0ebd4a6c3ffbb14cd16db5b43c6b59e Mon Sep 17 00:00:00 2001 From: Sergej Sakac <73715684+Szegoo@users.noreply.github.com> Date: Fri, 16 Feb 2024 09:25:08 +0100 Subject: [PATCH] Fix region initialization (#42) --- src/zombienet.init.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zombienet.init.ts b/src/zombienet.init.ts index d795e41..24338d7 100644 --- a/src/zombienet.init.ts +++ b/src/zombienet.init.ts @@ -226,11 +226,12 @@ async function initXcRegion(contractsApi: ApiPromise, contractAddress: string, r const xcRegionsContract = new ContractPromise(contractsApi, metadata, contractAddress); const rawRegionId = region.getEncodedRegionId(contractsApi); + const id = contractsApi.createType("Id", { U128: rawRegionId }); const alice = keyring.addFromUri("//Alice"); const callArguments = [ - rawRegionId, + id, // All the region metadata combined: { begin: region.getBegin(),