Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support latest Moonbeam in balance Smoketest #2444

Merged
merged 1 commit into from
Aug 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/suites/smoke/test-balances-consistency.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import type {
import { describeSuite, expect, beforeAll } from "@moonwall/cli";
import { TWO_HOURS, printTokens } from "@moonwall/util";
import { StorageKey } from "@polkadot/types";
import { rateLimiter } from "../../helpers/common.js";
import { extractPreimageDeposit } from "../../helpers/block.js";
import { ApiPromise } from "@polkadot/api";
import { processAllStorage } from "../../helpers/storageQueries.js";
Expand Down Expand Up @@ -57,7 +56,6 @@ describeSuite({
const expectedReserveMap = new Map<string, ReservedInfo>();
const expectedLocksMap = new Map<string, LocksInfo>();
const locksMap = new Map<string, { total: bigint }>();
const limiter = rateLimiter();
let failedLocks: any[] = [];
let failedReserved: any[] = [];
let atBlockNumber: number = 0;
Expand Down Expand Up @@ -485,7 +483,8 @@ describeSuite({
await new Promise((resolve, reject) => {
if (
(specVersion >= 1900 && runtimeName == "moonbase") ||
(specVersion >= 2100 && runtimeName == "moonriver")
(specVersion >= 2100 && runtimeName == "moonriver") ||
(specVersion >= 2300 && runtimeName == "moonbeam")
) {
apiAt.query.referenda.referendumInfoFor
.entries()
Expand Down Expand Up @@ -718,7 +717,8 @@ describeSuite({
// Only applies to OpenGov
if (
(specVersion >= 1900 && runtimeName == "moonbase") ||
(specVersion >= 2100 && runtimeName == "moonriver")
(specVersion >= 2100 && runtimeName == "moonriver") ||
(specVersion >= 2300 && runtimeName == "moonbeam")
) {
await new Promise((resolve, reject) => {
apiAt.query.convictionVoting.votingFor
Expand Down