git.delta.rocks / unique-network / refs/commits / 6c1065a66823

difftreelog

Code style and format

Greg Zaitsev2021-07-27parent: #793a35d.patch.diff
in: master

10 files changed

modifiedpallets/nft/src/lib.rsdiffbeforeafterboth

no syntactic changes

modifiedpallets/nft/src/tests.rsdiffbeforeafterboth

no syntactic changes

modifiedruntime/src/lib.rsdiffbeforeafterboth
154 transaction_version: 1,154 transaction_version: 1,
155};155};
156156
157pub const MILLISECS_PER_BLOCK: u64 = 12000;157pub const MILLISECS_PER_BLOCK: u64 = 1200;
158158
159pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;159pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;
160160
modifiedtests/src/change-collection-owner.test.tsdiffbeforeafterboth
7import chaiAsPromised from 'chai-as-promised';7import chaiAsPromised from 'chai-as-promised';
8import privateKey from './substrate/privateKey';8import privateKey from './substrate/privateKey';
9import { default as usingApi, submitTransactionAsync, submitTransactionExpectFailAsync } from './substrate/substrate-api';9import { default as usingApi, submitTransactionAsync, submitTransactionExpectFailAsync } from './substrate/substrate-api';
10import { createCollectionExpectSuccess, normalizeAccountId } from './util/helpers';10import { createCollectionExpectSuccess } from './util/helpers';
1111
12chai.use(chaiAsPromised);12chai.use(chaiAsPromised);
13const expect = chai.expect;13const expect = chai.expect;
modifiedtests/src/enableDisableTransfer.test.tsdiffbeforeafterboth
12 createCollectionExpectSuccess,12 createCollectionExpectSuccess,
13 transferExpectSuccess,13 transferExpectSuccess,
14 transferExpectFailure,14 transferExpectFailure,
15 setTransferFlagExpectSuccess15 setTransferFlagExpectSuccess,
16} from './util/helpers';16} from './util/helpers';
1717
18chai.use(chaiAsPromised);18chai.use(chaiAsPromised);
modifiedtests/src/pallet-presence.test.tsdiffbeforeafterboth

no syntactic changes

modifiedtests/src/setConstOnChainSchema.test.tsdiffbeforeafterboth
11import {11import {
12 createCollectionExpectSuccess,12 createCollectionExpectSuccess,
13 destroyCollectionExpectSuccess,13 destroyCollectionExpectSuccess,
14 normalizeAccountId,
15} from './util/helpers';14} from './util/helpers';
1615
17chai.use(chaiAsPromised);16chai.use(chaiAsPromised);
modifiedtests/src/setVariableOnChainSchema.test.tsdiffbeforeafterboth
11import {11import {
12 createCollectionExpectSuccess,12 createCollectionExpectSuccess,
13 destroyCollectionExpectSuccess,13 destroyCollectionExpectSuccess,
14 normalizeAccountId,
15} from './util/helpers';14} from './util/helpers';
1615
17chai.use(chaiAsPromised);16chai.use(chaiAsPromised);
modifiedtests/src/substrate/substrate-api.tsdiffbeforeafterboth

no syntactic changes

modifiedtests/src/util/helpers.tsdiffbeforeafterboth
555 });555 });
556}556}
557557
558export async function toggleContractWhitelistExpectSuccess(sender: IKeyringPair, contractAddress: AccountId | string, value: boolean = true) {558export async function toggleContractWhitelistExpectSuccess(sender: IKeyringPair, contractAddress: AccountId | string, value = true) {
559 await usingApi(async (api) => {559 await usingApi(async (api) => {
560 const tx = api.tx.nft.toggleContractWhiteList(contractAddress, value);560 const tx = api.tx.nft.toggleContractWhiteList(contractAddress, value);
561 const events = await submitTransactionAsync(sender, tx);561 const events = await submitTransactionAsync(sender, tx);