git.delta.rocks / unique-network / refs/commits / 281677a9f1f9

difftreelog

Merge branch 'develop' into feature/CORE-37

Igor Kozyrev2021-09-01parents: #55d2f5b #ded6402.patch.diff
in: master

4 files changed

modifiedpallets/nft/src/lib.rsdiffbeforeafterboth
255 .max(Self::create_item_fungible())255 .max(Self::create_item_fungible())
256 .max(Self::create_item_refungible(data))256 .max(Self::create_item_refungible(data))
257 }257 }
258 fn create_multiple_items(amount: u32) -> Weight {
259 Self::create_multiple_items_nft(amount)
260 .max(Self::create_multiple_items_fungible(amount))
261 .max(Self::create_multiple_items_refungible(amount))
262 }
258 fn burn_item() -> Weight {263 fn burn_item() -> Weight {
259 // TODO: refungible, fungible264 // TODO: refungible, fungible
260 Self::burn_item_nft()265 Self::burn_item_nft()
901 /// * itemsData: Array items properties. Each property is an array of bytes itself, see [create_item].906 /// * itemsData: Array items properties. Each property is an array of bytes itself, see [create_item].
902 ///907 ///
903 /// * owner: Address, initial owner of the NFT.908 /// * owner: Address, initial owner of the NFT.
904 #[weight = <SelfWeightOf<T>>::create_item(items_data.iter()909 #[weight = <SelfWeightOf<T>>::create_multiple_items(items_data.len() as u32)]
905 .map(|data| { data.data_size() as u32 })
906 .sum())]
907 #[transactional]910 #[transactional]
908 pub fn create_multiple_items(origin, collection_id: CollectionId, owner: T::CrossAccountId, items_data: Vec<CreateItemData>) -> DispatchResult {911 pub fn create_multiple_items(origin, collection_id: CollectionId, owner: T::CrossAccountId, items_data: Vec<CreateItemData>) -> DispatchResult {
909912
929 /// * collection_id: ID of the collection.932 /// * collection_id: ID of the collection.
930 ///933 ///
931 /// * value: New flag value.934 /// * value: New flag value.
932 #[weight = <SelfWeightOf<T>>::burn_item()]935 #[weight = <SelfWeightOf<T>>::set_transfers_enabled_flag()]
933 #[transactional]936 #[transactional]
934 pub fn set_transfers_enabled_flag(origin, collection_id: CollectionId, value: bool) -> DispatchResult {937 pub fn set_transfers_enabled_flag(origin, collection_id: CollectionId, value: bool) -> DispatchResult {
935938
modifiedtests/src/pallet-presence.test.tsdiffbeforeafterboth
25 'evm',25 'evm',
26 'evmcodersubstrate',26 'evmcodersubstrate',
27 'evmcontracthelpers',27 'evmcontracthelpers',
28 'evmmigration',
28 'evmtransactionpayment',29 'evmtransactionpayment',
29 'ethereum',30 'ethereum',
30 'xcmpqueue',31 'xcmpqueue',
modifiedtests/src/setChainLimits.test.tsdiffbeforeafterboth
13 IChainLimits,13 IChainLimits,
14} from './util/helpers';14} from './util/helpers';
1515
16describe('Negative Integration Test setChainLimits', () => {16describe.skip('Negative Integration Test setChainLimits', () => {
17 let alice: IKeyringPair;17 let alice: IKeyringPair;
18 let bob: IKeyringPair;18 let bob: IKeyringPair;
19 let dave: IKeyringPair;19 let dave: IKeyringPair;
modifiedtests/src/transfer.test.tsdiffbeforeafterboth
60 // tslint:disable-next-line:no-unused-expression60 // tslint:disable-next-line:no-unused-expression
61 expect(result.success).to.be.false;61 expect(result.success).to.be.false;
62 };62 };
63 expect(badTransaction()).to.be.rejectedWith('Inability to pay some fees , e.g. account balance too low');63 await expect(badTransaction()).to.be.rejectedWith('Inability to pay some fees , e.g. account balance too low');
64 });64 });
65 });65 });
6666