difftreelog
chore fix test formating
in: master
4 files changed
tests/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>) {
tests/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();
});
});
tests/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});
});
});
tests/src/util/playgrounds/unique.tsdiffbeforeafterboth778import {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';454246export class CrossAccountId implements ICrossAccountId {43export class CrossAccountId implements ICrossAccountId {47 Substrate?: TSubstrateAccount;44 Substrate?: TSubstrateAccount;