Skip to content

Commit

Permalink
fix balance test (#240)
Browse files Browse the repository at this point in the history
* fix balance test

* fix moonbase beta balance test

* update snaps

* add changeset
  • Loading branch information
Rihyx authored Apr 22, 2024
1 parent 51ce7c9 commit cd11eb3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/stale-clouds-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@moonbeam-network/xcm-sdk': patch
---

Fix balance test
6 changes: 3 additions & 3 deletions packages/sdk/tests/acceptance/__snapshots__/sdk.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion packages/sdk/tests/acceptance/sdk.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* eslint-disable jest/no-commented-out-tests */
import { describe, expect, it } from '@jest/globals';
import {
centrifuge,
hydraDX,
Expand All @@ -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}`, () => {
Expand Down

0 comments on commit cd11eb3

Please sign in to comment.