difftreelog
Tests: use immortal era for accounts generation
in: master
3 files changed
tests/src/util/index.tsdiffbeforeafterboth94};94};959596export const MINIMUM_DONOR_FUND = 100_000n;96export const MINIMUM_DONOR_FUND = 100_000n;97export const DONOR_FUNDING = 1_000_000n;97export const DONOR_FUNDING = 2_000_000n;989899// App-promotion periods:99// App-promotion periods:100export const LOCKING_PERIOD = 12n; // 12 blocks of relay100export const LOCKING_PERIOD = 12n; // 12 blocks of relaytests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth214 accounts.push(recipient);214 accounts.push(recipient);215 if (balance !== 0n) {215 if (balance !== 0n) {216 const tx = this.helper.constructApiCall('api.tx.balances.transfer', [{Id: recipient.address}, balance * tokenNominal]);216 const tx = this.helper.constructApiCall('api.tx.balances.transfer', [{Id: recipient.address}, balance * tokenNominal]);217 transactions.push(this.helper.signTransaction(donor, tx, {nonce}, 'account generation'));217 transactions.push(this.helper.signTransaction(donor, tx, {nonce, era: 0}, 'account generation'));218 nonce++;218 nonce++;219 }219 }220 }220 }tests/src/util/playgrounds/unique.tsdiffbeforeafterboth6/* eslint-disable no-prototype-builtins */6/* eslint-disable no-prototype-builtins */778import {ApiPromise, WsProvider, Keyring} from '@polkadot/api';8import {ApiPromise, WsProvider, Keyring} from '@polkadot/api';9import {SignerOptions} from '@polkadot/api/types/submittable';9import {ApiInterfaceEvents, SignerOptions} from '@polkadot/api/types';10import {ApiInterfaceEvents} from '@polkadot/api/types';10import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm, base58Encode, blake2AsU8a} from '@polkadot/util-crypto';11import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm, base58Encode, blake2AsU8a} from '@polkadot/util-crypto';11import {IKeyringPair} from '@polkadot/types/types';12import {IKeyringPair} from '@polkadot/types/types';12import {hexToU8a} from '@polkadot/util/hex';13import {hexToU8a} from '@polkadot/util/hex';