From 549523838254c5b0d30c30d6a3ec0d59d3498a0b Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Wed, 15 Feb 2023 06:55:57 +0000 Subject: [PATCH] Tests: use immortal era for accounts generation --- --- a/tests/src/util/index.ts +++ b/tests/src/util/index.ts @@ -94,7 +94,7 @@ }; export const MINIMUM_DONOR_FUND = 100_000n; -export const DONOR_FUNDING = 1_000_000n; +export const DONOR_FUNDING = 2_000_000n; // App-promotion periods: export const LOCKING_PERIOD = 12n; // 12 blocks of relay --- a/tests/src/util/playgrounds/unique.dev.ts +++ b/tests/src/util/playgrounds/unique.dev.ts @@ -214,7 +214,7 @@ accounts.push(recipient); if (balance !== 0n) { const tx = this.helper.constructApiCall('api.tx.balances.transfer', [{Id: recipient.address}, balance * tokenNominal]); - transactions.push(this.helper.signTransaction(donor, tx, {nonce}, 'account generation')); + transactions.push(this.helper.signTransaction(donor, tx, {nonce, era: 0}, 'account generation')); nonce++; } } --- a/tests/src/util/playgrounds/unique.ts +++ b/tests/src/util/playgrounds/unique.ts @@ -6,7 +6,8 @@ /* eslint-disable no-prototype-builtins */ import {ApiPromise, WsProvider, Keyring} from '@polkadot/api'; -import {ApiInterfaceEvents, SignerOptions} from '@polkadot/api/types'; +import {SignerOptions} from '@polkadot/api/types/submittable'; +import {ApiInterfaceEvents} from '@polkadot/api/types'; import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm, base58Encode, blake2AsU8a} from '@polkadot/util-crypto'; import {IKeyringPair} from '@polkadot/types/types'; import {hexToU8a} from '@polkadot/util/hex'; -- gitstuff