git.delta.rocks / unique-network / refs/commits / 3a3ad6b3e842

difftreelog

chore fix test formating

Grigoriy Simonov2022-10-25parent: #b3ce401.patch.diff
in: master

4 files changed

modifiedtests/src/eth/collectionAdmin.test.tsdiffbeforeafterboth
--- 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 <http://www.gnu.org/licenses/>.
 
 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<any>) {
modifiedtests/src/eth/createFTCollection.test.tsdiffbeforeafterboth
--- 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 <http://www.gnu.org/licenses/>.
 
 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();
     });
   });
modifiedtests/src/eth/destroyCollection.test.tsdiffbeforeafterboth
--- 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});
     });
   });
 
modifiedtests/src/util/playgrounds/unique.tsdiffbeforeafterboth
77
8import {ApiPromise, WsProvider, Keyring} from '@polkadot/api';8import {ApiPromise, WsProvider, Keyring} from '@polkadot/api';
9import {ApiInterfaceEvents, SignerOptions} from '@polkadot/api/types';9import {ApiInterfaceEvents, SignerOptions} from '@polkadot/api/types';
10import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm, base58Encode, blake2AsU8a} from '@polkadot/util-crypto';10import {encodeAddress, decodeAddress, keccakAsHex, evmToAddress, addressToEvm} from '@polkadot/util-crypto';
11import {IKeyringPair} from '@polkadot/types/types';11import {IKeyringPair} from '@polkadot/types/types';
12import {12import {
13 IApiListeners,13 IApiListeners,
33 TEthereumAccount,33 TEthereumAccount,
34 TSigner,34 TSigner,
35 TSubstrateAccount,35 TSubstrateAccount,
36 IEthCrossAccountId,
37 TNetworks,36 TNetworks,
38 IForeignAssetMetadata,37 IForeignAssetMetadata,
39 AcalaAssetMetadata,38 AcalaAssetMetadata,
40 MoonbeamAssetInfo,39 MoonbeamAssetInfo,
41 DemocracyStandardAccountVote,40 DemocracyStandardAccountVote,
42} from './types';41} from './types';
43import {hexToU8a} from '@polkadot/util/hex';
44import {u8aConcat} from '@polkadot/util/u8a';
4542
46export class CrossAccountId implements ICrossAccountId {43export class CrossAccountId implements ICrossAccountId {
47 Substrate?: TSubstrateAccount;44 Substrate?: TSubstrateAccount;