git.delta.rocks / unique-network / refs/commits / e25275acc906

difftreelog

chore fix code review requess

Grigoriy Simonov2022-12-07parent: #72b01ba.patch.diff
in: master

7 files changed

modifiedpallets/fungible/src/common.rsdiffbeforeafterboth
435 _operator: T::CrossAccountId,435 _operator: T::CrossAccountId,
436 _approve: bool,436 _approve: bool,
437 ) -> DispatchResultWithPostInfo {437 ) -> DispatchResultWithPostInfo {
438 fail!(<Error<T>>::SettingApprovalForAllNotAllowed)438 fail!(<Error<T>>::SettingAllowanceForAllNotAllowed)
439 }439 }
440440
441 fn allowance_for_all(&self, _owner: T::CrossAccountId, _operator: T::CrossAccountId) -> bool {441 fn allowance_for_all(&self, _owner: T::CrossAccountId, _operator: T::CrossAccountId) -> bool {
modifiedpallets/fungible/src/lib.rsdiffbeforeafterboth
128 /// Setting item properties is not allowed.128 /// Setting item properties is not allowed.
129 SettingPropertiesNotAllowed,129 SettingPropertiesNotAllowed,
130 /// Setting approval for all is not allowed.130 /// Setting approval for all is not allowed.
131 SettingApprovalForAllNotAllowed,131 SettingAllowanceForAllNotAllowed,
132 }132 }
133133
134 #[pallet::config]134 #[pallet::config]
modifiedpallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth
226 set_allowance_for_all {226 set_allowance_for_all {
227 bench_init!{227 bench_init!{
228 owner: sub; collection: collection(owner);228 owner: sub; collection: collection(owner);
229 operator: cross_from_sub(owner); owner: cross_sub;229 operator: cross_sub(owner); owner: cross_sub;
230 };230 };
231 }: {<Pallet<T>>::set_allowance_for_all(&collection, &owner, &operator, true)}231 }: {<Pallet<T>>::set_allowance_for_all(&collection, &owner, &operator, true)}
232232
233 allowance_for_all {233 allowance_for_all {
234 bench_init!{234 bench_init!{
235 owner: sub; collection: collection(owner);235 owner: sub; collection: collection(owner);
236 operator: cross_from_sub(owner); owner: cross_sub;236 operator: cross_sub(owner); owner: cross_sub;
237 };237 };
238 }: {<Pallet<T>>::allowance_for_all(&collection, &owner, &operator)}238 }: {<Pallet<T>>::allowance_for_all(&collection, &owner, &operator)}
239}239}
modifiedtests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth
388 /**388 /**
389 * Setting approval for all is not allowed.389 * Setting approval for all is not allowed.
390 **/390 **/
391 SettingApprovalForAllNotAllowed: AugmentedError<ApiType>;391 SettingAllowanceForAllNotAllowed: AugmentedError<ApiType>;
392 /**392 /**
393 * Setting item properties is not allowed.393 * Setting item properties is not allowed.
394 **/394 **/
modifiedtests/src/interfaces/default/types.tsdiffbeforeafterboth
1605 readonly isFungibleItemsDontHaveData: boolean;1605 readonly isFungibleItemsDontHaveData: boolean;
1606 readonly isFungibleDisallowsNesting: boolean;1606 readonly isFungibleDisallowsNesting: boolean;
1607 readonly isSettingPropertiesNotAllowed: boolean;1607 readonly isSettingPropertiesNotAllowed: boolean;
1608 readonly isSettingApprovalForAllNotAllowed: boolean;1608 readonly isSettingAllowanceForAllNotAllowed: boolean;
1609 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingApprovalForAllNotAllowed';1609 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed';
1610}1610}
16111611
1612/** @name PalletInflationCall */1612/** @name PalletInflationCall */
modifiedtests/src/interfaces/lookup.tsdiffbeforeafterboth
3451 * Lookup430: pallet_fungible::pallet::Error<T>3451 * Lookup430: pallet_fungible::pallet::Error<T>
3452 **/3452 **/
3453 PalletFungibleError: {3453 PalletFungibleError: {
3454 _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingApprovalForAllNotAllowed']3454 _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingAllowanceForAllNotAllowed']
3455 },3455 },
3456 /**3456 /**
3457 * Lookup431: pallet_refungible::ItemData3457 * Lookup431: pallet_refungible::ItemData
modifiedtests/src/interfaces/types-lookup.tsdiffbeforeafterboth
3663 readonly isFungibleItemsDontHaveData: boolean;3663 readonly isFungibleItemsDontHaveData: boolean;
3664 readonly isFungibleDisallowsNesting: boolean;3664 readonly isFungibleDisallowsNesting: boolean;
3665 readonly isSettingPropertiesNotAllowed: boolean;3665 readonly isSettingPropertiesNotAllowed: boolean;
3666 readonly isSettingApprovalForAllNotAllowed: boolean;3666 readonly isSettingAllowanceForAllNotAllowed: boolean;
3667 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingApprovalForAllNotAllowed';3667 readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed';
3668 }3668 }
36693669
3670 /** @name PalletRefungibleItemData (431) */3670 /** @name PalletRefungibleItemData (431) */