Skip to content

Commit

Permalink
Fix region initialization (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo authored Feb 16, 2024
1 parent 16f4ebc commit c76e804
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/zombienet.init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit c76e804

Please sign in to comment.