difftreelog
Code style and format
in: master
10 files changed
pallets/nft/src/lib.rsdiffbeforeafterbothno syntactic changes
pallets/nft/src/tests.rsdiffbeforeafterbothno syntactic changes
runtime/src/lib.rsdiffbeforeafterboth154 transaction_version: 1,154 transaction_version: 1,155};155};156156157pub const MILLISECS_PER_BLOCK: u64 = 12000;157pub const MILLISECS_PER_BLOCK: u64 = 1200;158158159pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;159pub const SLOT_DURATION: u64 = MILLISECS_PER_BLOCK;160160tests/src/change-collection-owner.test.tsdiffbeforeafterboth7import 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';111112chai.use(chaiAsPromised);12chai.use(chaiAsPromised);13const expect = chai.expect;13const expect = chai.expect;tests/src/enableDisableTransfer.test.tsdiffbeforeafterboth12 createCollectionExpectSuccess,12 createCollectionExpectSuccess,13 transferExpectSuccess,13 transferExpectSuccess,14 transferExpectFailure,14 transferExpectFailure,15 setTransferFlagExpectSuccess15 setTransferFlagExpectSuccess,16} from './util/helpers';16} from './util/helpers';171718chai.use(chaiAsPromised);18chai.use(chaiAsPromised);tests/src/pallet-presence.test.tsdiffbeforeafterbothno syntactic changes
tests/src/setConstOnChainSchema.test.tsdiffbeforeafterboth11import {11import {12 createCollectionExpectSuccess,12 createCollectionExpectSuccess,13 destroyCollectionExpectSuccess,13 destroyCollectionExpectSuccess,14 normalizeAccountId,15} from './util/helpers';14} from './util/helpers';161517chai.use(chaiAsPromised);16chai.use(chaiAsPromised);tests/src/setVariableOnChainSchema.test.tsdiffbeforeafterboth11import {11import {12 createCollectionExpectSuccess,12 createCollectionExpectSuccess,13 destroyCollectionExpectSuccess,13 destroyCollectionExpectSuccess,14 normalizeAccountId,15} from './util/helpers';14} from './util/helpers';161517chai.use(chaiAsPromised);16chai.use(chaiAsPromised);tests/src/substrate/substrate-api.tsdiffbeforeafterbothno syntactic changes
tests/src/util/helpers.tsdiffbeforeafterboth555 });555 });556}556}557557558export 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);