difftreelog
chore fix code review requess
in: master
7 files changed
pallets/fungible/src/common.rsdiffbeforeafterboth435 _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 }440440441 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 {pallets/fungible/src/lib.rsdiffbeforeafterboth128 /// 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 }133133134 #[pallet::config]134 #[pallet::config]pallets/nonfungible/src/benchmarking.rsdiffbeforeafterboth226 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)}232232233 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}tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth388 /**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 **/tests/src/interfaces/default/types.tsdiffbeforeafterboth1605 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}161116111612/** @name PalletInflationCall */1612/** @name PalletInflationCall */tests/src/interfaces/lookup.tsdiffbeforeafterboth3451 * 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::ItemDatatests/src/interfaces/types-lookup.tsdiffbeforeafterboth3663 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 }366936693670 /** @name PalletRefungibleItemData (431) */3670 /** @name PalletRefungibleItemData (431) */