difftreelog
Merge branch 'develop' into feature/CORE-37
in: master
4 files changed
pallets/nft/src/lib.rsdiffbeforeafterboth255 .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, fungible260 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 {909912929 /// * 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 {935938tests/src/pallet-presence.test.tsdiffbeforeafterboth25 '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',tests/src/setChainLimits.test.tsdiffbeforeafterboth13 IChainLimits,13 IChainLimits,14} from './util/helpers';14} from './util/helpers';151516describe('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;tests/src/transfer.test.tsdiffbeforeafterboth60 // tslint:disable-next-line:no-unused-expression60 // tslint:disable-next-line:no-unused-expression61 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