Skip to content

Commit

Permalink
Add governance + sibling parachain
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekkMA committed Jan 29, 2025
1 parent 3763644 commit 79a9232
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
13 changes: 8 additions & 5 deletions test/helpers/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,12 +399,15 @@ export async function registerForeignAsset(

// Sanitize Xcm Location
const xcmLoc = patchLocationV4recursively(xcmLocation);
const api = context.polkadotJs();

const { result } = await context.createBlock(
api.tx.sudo.sudoAs(
alith.address,
api.tx.evmForeignAssets.createForeignAsset(assetId, xcmLoc, decimals, symbol, name)
)
context
.polkadotJs()
.tx.sudo.sudo(
context
.polkadotJs()
.tx.evmForeignAssets.createForeignAsset(assetId, xcmLoc, decimals, symbol, name)
)
);

// Fetch the relevant event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ describeSuite({
);
assetId = registeredAssetId;

// Expect a balance diff after creating an asset due to the deposit
const assetCreationDeposit = 100;
await verifyLatestBlockFees(context, BigInt(assetCreationDeposit));
await verifyLatestBlockFees(context);
});

it({
Expand Down

0 comments on commit 79a9232

Please sign in to comment.