From cd11eb3e91aecd69c6af52c6817e473d0e69d6eb Mon Sep 17 00:00:00 2001 From: Richard Kenigs <18597956+Rihyx@users.noreply.github.com> Date: Mon, 22 Apr 2024 13:22:39 +0200 Subject: [PATCH] fix balance test (#240) * fix balance test * fix moonbase beta balance test * update snaps * add changeset --- .changeset/stale-clouds-drum.md | 5 +++++ .../sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap | 6 +++--- packages/sdk/tests/acceptance/sdk.test.ts | 3 ++- 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 .changeset/stale-clouds-drum.md diff --git a/.changeset/stale-clouds-drum.md b/.changeset/stale-clouds-drum.md new file mode 100644 index 00000000..0b7da30c --- /dev/null +++ b/.changeset/stale-clouds-drum.md @@ -0,0 +1,5 @@ +--- +'@moonbeam-network/xcm-sdk': patch +--- + +Fix balance test diff --git a/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap b/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap index 43e94c07..ba4a1afa 100644 --- a/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap +++ b/packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap @@ -290,7 +290,7 @@ exports[`sdk getParachainBalances should get expected balances for Moonbase Alph exports[`sdk getParachainBalances should get expected balances for Moonbase Beta 1`] = ` [ r { - "amount": 0n, + "amount": 100000000000000000n, "decimals": 18, "key": "ftmwh", "originSymbol": "FTM.wh", @@ -304,14 +304,14 @@ exports[`sdk getParachainBalances should get expected balances for Moonbase Beta "symbol": "USDC.Wh", }, r { - "amount": 12180000000000000000n, + "amount": 1100000000000000000n, "decimals": 18, "key": "alan", "originSymbol": "ALAN", "symbol": "ALAN", }, r { - "amount": 7972889614166000000n, + "amount": 1100000000000000000n, "decimals": 18, "key": "dev", "originSymbol": "DEV", diff --git a/packages/sdk/tests/acceptance/sdk.test.ts b/packages/sdk/tests/acceptance/sdk.test.ts index f18a6576..d484a302 100644 --- a/packages/sdk/tests/acceptance/sdk.test.ts +++ b/packages/sdk/tests/acceptance/sdk.test.ts @@ -1,4 +1,5 @@ /* eslint-disable jest/no-commented-out-tests */ +import { describe, expect, it } from '@jest/globals'; import { centrifuge, hydraDX, @@ -14,7 +15,7 @@ const hydraDXAddress = '7MR8Qxy9sJmN6bfHMggAtFY5DwLxfrssLuTnP5rmkpD92oPH'; const centrifugeAddress = '4fAKSBMGVT9jt1jkuJvXgvMbmqV2BuspFWWEmdVeFj9yRudb'; const moonEvmAddress = '0x4E82143Af671Cc8201Bc7efCBbCED3A69e84405e'; const substrateAddress = '5FtGz8bgoCQ6pNAYLWCfxKx9ekLnX1ewP9q2TjMT2riu7sf9'; -const moonbaseBetaAddress = '0x08480769599E23F626efff39B89F3137e9917a40'; +const moonbaseBetaAddress = '0x4E82143Af671Cc8201Bc7efCBbCED3A69e84405e'; describe('sdk', () => { describe(`${getParachainBalances.name}`, () => {