difftreelog
chore fix code review requess
in: master
7 files changed
pallets/fungible/src/common.rsdiffbeforeafterboth--- a/pallets/fungible/src/common.rs
+++ b/pallets/fungible/src/common.rs
@@ -435,7 +435,7 @@
_operator: T::CrossAccountId,
_approve: bool,
) -> DispatchResultWithPostInfo {
- fail!(<Error<T>>::SettingApprovalForAllNotAllowed)
+ fail!(<Error<T>>::SettingAllowanceForAllNotAllowed)
}
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.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/benchmarking.rs
+++ b/pallets/nonfungible/src/benchmarking.rs
@@ -226,14 +226,14 @@
set_allowance_for_all {
bench_init!{
owner: sub; collection: collection(owner);
- operator: cross_from_sub(owner); owner: cross_sub;
+ operator: cross_sub(owner); owner: cross_sub;
};
}: {<Pallet<T>>::set_allowance_for_all(&collection, &owner, &operator, true)}
allowance_for_all {
bench_init!{
owner: sub; collection: collection(owner);
- operator: cross_from_sub(owner); owner: cross_sub;
+ operator: cross_sub(owner); owner: cross_sub;
};
}: {<Pallet<T>>::allowance_for_all(&collection, &owner, &operator)}
}
tests/src/interfaces/augment-api-errors.tsdiffbeforeafterboth--- a/tests/src/interfaces/augment-api-errors.ts
+++ b/tests/src/interfaces/augment-api-errors.ts
@@ -388,7 +388,7 @@
/**
* Setting approval for all is not allowed.
**/
- SettingApprovalForAllNotAllowed: AugmentedError<ApiType>;
+ SettingAllowanceForAllNotAllowed: AugmentedError<ApiType>;
/**
* Setting item properties is not allowed.
**/
tests/src/interfaces/default/types.tsdiffbeforeafterboth--- a/tests/src/interfaces/default/types.ts
+++ b/tests/src/interfaces/default/types.ts
@@ -1605,8 +1605,8 @@
readonly isFungibleItemsDontHaveData: boolean;
readonly isFungibleDisallowsNesting: boolean;
readonly isSettingPropertiesNotAllowed: boolean;
- readonly isSettingApprovalForAllNotAllowed: boolean;
- readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingApprovalForAllNotAllowed';
+ readonly isSettingAllowanceForAllNotAllowed: boolean;
+ readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed';
}
/** @name PalletInflationCall */
tests/src/interfaces/lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/lookup.ts
+++ b/tests/src/interfaces/lookup.ts
@@ -3451,7 +3451,7 @@
* Lookup430: pallet_fungible::pallet::Error<T>
**/
PalletFungibleError: {
- _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingApprovalForAllNotAllowed']
+ _enum: ['NotFungibleDataUsedToMintFungibleCollectionToken', 'FungibleItemsHaveNoId', 'FungibleItemsDontHaveData', 'FungibleDisallowsNesting', 'SettingPropertiesNotAllowed', 'SettingAllowanceForAllNotAllowed']
},
/**
* Lookup431: pallet_refungible::ItemData
tests/src/interfaces/types-lookup.tsdiffbeforeafterboth--- a/tests/src/interfaces/types-lookup.ts
+++ b/tests/src/interfaces/types-lookup.ts
@@ -3663,8 +3663,8 @@
readonly isFungibleItemsDontHaveData: boolean;
readonly isFungibleDisallowsNesting: boolean;
readonly isSettingPropertiesNotAllowed: boolean;
- readonly isSettingApprovalForAllNotAllowed: boolean;
- readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingApprovalForAllNotAllowed';
+ readonly isSettingAllowanceForAllNotAllowed: boolean;
+ readonly type: 'NotFungibleDataUsedToMintFungibleCollectionToken' | 'FungibleItemsHaveNoId' | 'FungibleItemsDontHaveData' | 'FungibleDisallowsNesting' | 'SettingPropertiesNotAllowed' | 'SettingAllowanceForAllNotAllowed';
}
/** @name PalletRefungibleItemData (431) */