From 3a3ad6b3e842c780b9624f35b7d0ed1f6912bdff Mon Sep 17 00:00:00 2001 From: Grigoriy Simonov Date: Tue, 25 Oct 2022 10:39:10 +0000 Subject: [PATCH] chore: fix test formating --- --- a/tests/src/eth/collectionAdmin.test.ts +++ b/tests/src/eth/collectionAdmin.test.ts @@ -14,7 +14,6 @@ // along with Unique Network. If not, see . import {IKeyringPair} from '@polkadot/types/types'; -import {IEthCrossAccountId} from '../util/playgrounds/types'; import {usingEthPlaygrounds, itEth, expect, EthUniqueHelper} from './util'; async function recordEthFee(helper: EthUniqueHelper, userAddress: string, call: () => Promise) { --- a/tests/src/eth/createFTCollection.test.ts +++ b/tests/src/eth/createFTCollection.test.ts @@ -15,7 +15,7 @@ // along with Unique Network. If not, see . import {IKeyringPair} from '@polkadot/types/types'; -import { evmToAddress } from '@polkadot/util-crypto'; +import {evmToAddress} from '@polkadot/util-crypto'; import {Pallets, requirePalletsOrSkip} from '../util'; import {expect, itEth, usingEthPlaygrounds} from './util'; @@ -27,7 +27,7 @@ before(async function() { await usingEthPlaygrounds(async (helper, privateKey) => { requirePalletsOrSkip(this, helper, [Pallets.Fungible]); - donor = await privateKey('//Alice'); + donor = await privateKey({filename: __filename}); }); }); @@ -181,7 +181,7 @@ before(async function() { await usingEthPlaygrounds(async (helper, privateKey) => { requirePalletsOrSkip(this, helper, [Pallets.Fungible]); - donor = await privateKey('//Alice'); + donor = await privateKey({filename: __filename}); nominal = helper.balance.getOneTokenNominal(); }); }); --- a/tests/src/eth/destroyCollection.test.ts +++ b/tests/src/eth/destroyCollection.test.ts @@ -25,7 +25,7 @@ before(async function() { await usingEthPlaygrounds(async (helper, privateKey) => { requirePalletsOrSkip(this, helper, [Pallets.ReFungible, Pallets.NFT]); - donor = await privateKey('//Alice'); + donor = await privateKey({filename: __filename}); }); }); --- a/tests/src/util/playgrounds/unique.ts +++ b/tests/src/util/playgrounds/unique.ts @@ -7,7 +7,7 @@ import {ApiPromise, WsProvider, Keyring} from '@polkadot/api'; import {ApiInterfaceEvents, SignerOptions} from '@polkadot/api/types'; -import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm, base58Encode, blake2AsU8a} from '@polkadot/util-crypto'; +import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm} from '@polkadot/util-crypto'; import {IKeyringPair} from '@polkadot/types/types'; import { IApiListeners, @@ -33,15 +33,12 @@ TEthereumAccount, TSigner, TSubstrateAccount, - IEthCrossAccountId, TNetworks, IForeignAssetMetadata, AcalaAssetMetadata, MoonbeamAssetInfo, DemocracyStandardAccountVote, } from './types'; -import {hexToU8a} from '@polkadot/util/hex'; -import {u8aConcat} from '@polkadot/util/u8a'; export class CrossAccountId implements ICrossAccountId { Substrate?: TSubstrateAccount; -- gitstuff