fix(ci): AŞAMA 3 test düzeltmeleri

- testnet cargo profili eklendi (CI testleri için gerekli)
- tests-misc.yml: frame-feature-testing feature adı düzeltildi
- 179 UI test .stderr dosyası güncellendi (rebrand yansıması)
- ss58-registry doc testleri: ss58_registry -> pezkuwi_ss58_registry
- ss58-registry doc testleri: TokenRegistry::Dot -> TokenRegistry::Hez
- WORKFLOW_PLAN.md güncellendi (doğru CI komutları)
- 3 pezpallet UI test dosyası düzeltildi:
  - PezpalletInfo -> PalletInfo
  - PezpalletError -> PalletError

Test edildi:
- cargo check --workspace --locked --features experimental,ci-only-tests 
- cargo check --workspace --locked --features try-runtime,experimental,ci-only-tests 
- cargo check --workspace --locked --features runtime-benchmarks 
- cargo test --profile testnet -p pezkuwi-node-metrics --features=runtime-metrics 
- cargo test -p pezframe-support-test UI tests 
- cargo test --doc --workspace --all-features 
- cargo build --profile testnet -p pezkuwi-test-malus 
This commit is contained in:
2025-12-25 09:44:29 +03:00
parent bda0c529ee
commit ec61dca3cf
183 changed files with 1141 additions and 1121 deletions
@@ -1,5 +1,5 @@
error: Invalid pallet macro call: unexpected attribute. Macro call must be bare, such as `#[frame_support::pallet]` or `#[pallet]`, or must specify the `dev_mode` attribute, such as `#[frame_support::pallet(dev_mode)]` or #[pallet(dev_mode)].
--> tests/pallet_ui/attr_non_empty.rs:18:26
error: Invalid pezpallet macro call: unexpected attribute. Macro call must be bare, such as `#[pezframe_support::pezpallet]` or `#[pezpallet]`, or must specify the `dev_mode` attribute, such as `#[pezframe_support::pezpallet(dev_mode)]` or #[pezpallet(dev_mode)].
--> tests/pezpallet_ui/attr_non_empty.rs:18:32
|
18 | #[frame_support::pallet [foo]]
| ^^^
18 | #[pezframe_support::pezpallet [foo]]
| ^^^
@@ -1,5 +1,5 @@
error: unexpected token, expected `]`
--> tests/pallet_ui/attribute_macros_deny_parameters.rs:25:21
--> tests/pezpallet_ui/attribute_macros_deny_parameters.rs:25:24
|
25 | #[pallet::constant(Hello)]
| ^^^^^^^
25 | #[pezpallet::constant(Hello)]
| ^^^^^^^
@@ -1,5 +1,5 @@
error: Invalid pallet::call, weight_of_authorize attribute must be used with authorize attribute
--> tests/pallet_ui/authorize_weight_but_no_closure.rs:36:33
error: Invalid pezpallet::call, weight_of_authorize attribute must be used with authorize attribute
--> tests/pezpallet_ui/authorize_weight_but_no_closure.rs:36:36
|
36 | #[pallet::weight_of_authorize(Weight::zero())]
| ^^^^^^
36 | #[pezpallet::weight_of_authorize(Weight::zero())]
| ^^^^^^
@@ -1,8 +1,8 @@
error[E0593]: closure is expected to take 2 arguments, but it takes 1 argument
--> tests/pallet_ui/authorize_wrong_closure.rs:36:23
--> tests/pezpallet_ui/authorize_wrong_closure.rs:36:26
|
36 | #[pallet::authorize(|_| true)]
| ^--
| |
| expected closure that takes 2 arguments
| takes 1 argument
36 | #[pezpallet::authorize(|_| true)]
| ^--
| |
| expected closure that takes 2 arguments
| takes 1 argument
@@ -1,12 +1,12 @@
error[E0631]: type mismatch in closure arguments
--> tests/pallet_ui/authorize_wrong_closure_2.rs:36:23
--> tests/pezpallet_ui/authorize_wrong_closure_2.rs:36:26
|
36 | #[pallet::authorize(|_, _: u8| -> bool { true })]
| ^--------------------------
| |
| expected due to this
| found signature defined here
| return type was inferred to be `{closure@authorize_wrong_closure_2.rs:36:23}` here
36 | #[pezpallet::authorize(|_, _: u8| -> bool { true })]
| ^--------------------------
| |
| expected due to this
| found signature defined here
| return type was inferred to be `{closure@authorize_wrong_closure_2.rs:36:26}` here
|
= note: expected closure signature `for<'a> fn(TransactionSource, &'a u32) -> _`
found closure signature `fn(TransactionSource, u8) -> _`
@@ -1,5 +1,5 @@
error: unexpected end of input, expected an expression
--> tests/pallet_ui/authorize_wrong_closure_3.rs:36:22
--> tests/pezpallet_ui/authorize_wrong_closure_3.rs:36:25
|
36 | #[pallet::authorize()]
| ^^
36 | #[pezpallet::authorize()]
| ^^
@@ -1,10 +1,10 @@
error[E0277]: expected a `Fn(TransactionSource, &u32)` closure, found `Result<_, _>`
--> tests/pallet_ui/authorize_wrong_closure_4.rs:36:23
--> tests/pezpallet_ui/authorize_wrong_closure_4.rs:36:26
|
36 | #[pallet::authorize(Ok(Default::default()))]
| ^^--------------------
| |
| expected an `Fn(TransactionSource, &u32)` closure, found `Result<_, _>`
| return type was inferred to be `Result<_, _>` here
36 | #[pezpallet::authorize(Ok(Default::default()))]
| ^^--------------------
| |
| expected an `Fn(TransactionSource, &u32)` closure, found `Result<_, _>`
| return type was inferred to be `Result<_, _>` here
|
= help: the trait `for<'a> Fn(TransactionSource, &'a u32)` is not implemented for `Result<_, _>`
@@ -1,8 +1,8 @@
error[E0593]: closure is expected to take 2 arguments, but it takes 1 argument
--> tests/pallet_ui/authorize_wrong_closure_5.rs:36:23
--> tests/pezpallet_ui/authorize_wrong_closure_5.rs:36:26
|
36 | #[pallet::authorize(|_a: &u32| -> TransactionValidityWithRefund {
| ^------------------------------------------
| |
| expected closure that takes 2 arguments
| takes 1 argument
36 | #[pezpallet::authorize(|_a: &u32| -> TransactionValidityWithRefund {
| ^------------------------------------------
| |
| expected closure that takes 2 arguments
| takes 1 argument
@@ -1,22 +1,22 @@
error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/authorize_wrong_weight.rs:37:33
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/authorize_wrong_weight.rs:37:36
|
37 | #[pallet::weight_of_authorize("foo")]
| ^^^^^
37 | #[pezpallet::weight_of_authorize("foo")]
| ^^^^^
|
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error[E0308]: mismatched types
--> tests/pallet_ui/authorize_wrong_weight.rs:37:33
--> tests/pezpallet_ui/authorize_wrong_weight.rs:37:36
|
18 | #[frame_support::pallet]
| ------------------------ expected `frame_support::weights::Weight` because of return type
18 | #[pezframe_support::pezpallet]
| ------------------------------ expected `pezframe_support::weights::Weight` because of return type
...
37 | #[pallet::weight_of_authorize("foo")]
| ^^^^^ expected `Weight`, found `&str`
37 | #[pezpallet::weight_of_authorize("foo")]
| ^^^^^ expected `Weight`, found `&str`
@@ -1,5 +1,5 @@
error[E0599]: no function or associated item named `authorize_call1` found for associated type `<T as pallet::Config>::WeightInfo` in the current scope
--> tests/pallet_ui/authorize_wrong_weight_info.rs:39:10
error[E0599]: no function or associated item named `authorize_call1` found for associated type `<T as pezpallet::Config>::WeightInfo` in the current scope
--> tests/pezpallet_ui/authorize_wrong_weight_info.rs:39:10
|
39 | pub fn call1(origin: OriginFor<T>, a: u32) -> DispatchResult {
| ^^^^^ function or associated item not found in `<T as Config>::WeightInfo`
@@ -1,5 +1,5 @@
error[E0220]: associated type `WeightIn` not found for `T`
--> tests/pallet_ui/authorize_wrong_weight_info_2.rs:34:29
--> tests/pezpallet_ui/authorize_wrong_weight_info_2.rs:34:32
|
34 | #[pallet::call(weight = T::WeightIn)]
| ^^^^^^^^ help: there is an associated type with a similar name: `WeightInfo`
34 | #[pezpallet::call(weight = T::WeightIn)]
| ^^^^^^^^ help: there is an associated type with a similar name: `WeightInfo`
@@ -1,41 +1,41 @@
error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/call_argument_invalid_bound.rs:36:20
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/call_argument_invalid_bound.rs:36:23
|
36 | #[pallet::weight(0)]
| ^
36 | #[pezpallet::weight(0)]
| ^
|
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error[E0277]: `<T as pallet::Config>::Bar` doesn't implement `std::fmt::Debug`
--> tests/pallet_ui/call_argument_invalid_bound.rs:38:36
error[E0277]: `<T as pezpallet::Config>::Bar` doesn't implement `std::fmt::Debug`
--> tests/pezpallet_ui/call_argument_invalid_bound.rs:38:36
|
38 | pub fn foo(origin: OriginFor<T>, _bar: T::Bar) -> DispatchResultWithPostInfo {
| ^^^^ `<T as pallet::Config>::Bar` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
| ^^^^ `<T as pezpallet::Config>::Bar` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
|
= help: the trait `std::fmt::Debug` is not implemented for `<T as pallet::Config>::Bar`
= note: required for `&<T as pallet::Config>::Bar` to implement `std::fmt::Debug`
= note: required for the cast from `&&<T as pallet::Config>::Bar` to `&dyn std::fmt::Debug`
= help: the trait `std::fmt::Debug` is not implemented for `<T as pezpallet::Config>::Bar`
= note: required for `&<T as pezpallet::Config>::Bar` to implement `std::fmt::Debug`
= note: required for the cast from `&&<T as pezpallet::Config>::Bar` to `&dyn std::fmt::Debug`
error[E0277]: the trait bound `<T as pallet::Config>::Bar: Clone` is not satisfied
--> tests/pallet_ui/call_argument_invalid_bound.rs:38:36
error[E0277]: the trait bound `<T as pezpallet::Config>::Bar: Clone` is not satisfied
--> tests/pezpallet_ui/call_argument_invalid_bound.rs:38:36
|
38 | pub fn foo(origin: OriginFor<T>, _bar: T::Bar) -> DispatchResultWithPostInfo {
| ^^^^ the trait `Clone` is not implemented for `<T as pallet::Config>::Bar`
| ^^^^ the trait `Clone` is not implemented for `<T as pezpallet::Config>::Bar`
error[E0369]: binary operation `==` cannot be applied to type `&<T as pallet::Config>::Bar`
--> tests/pallet_ui/call_argument_invalid_bound.rs:38:36
error[E0369]: binary operation `==` cannot be applied to type `&<T as pezpallet::Config>::Bar`
--> tests/pezpallet_ui/call_argument_invalid_bound.rs:38:36
|
38 | pub fn foo(origin: OriginFor<T>, _bar: T::Bar) -> DispatchResultWithPostInfo {
| ^^^^
error: unused variable: `origin`
--> tests/pallet_ui/call_argument_invalid_bound.rs:38:14
--> tests/pezpallet_ui/call_argument_invalid_bound.rs:38:14
|
38 | pub fn foo(origin: OriginFor<T>, _bar: T::Bar) -> DispatchResultWithPostInfo {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin`
@@ -1,60 +1,60 @@
error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/call_argument_invalid_bound_2.rs:36:20
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/call_argument_invalid_bound_2.rs:36:23
|
36 | #[pallet::weight(0)]
| ^
36 | #[pezpallet::weight(0)]
| ^
|
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error[E0277]: `<T as pallet::Config>::Bar` doesn't implement `std::fmt::Debug`
--> tests/pallet_ui/call_argument_invalid_bound_2.rs:38:36
error[E0277]: `<T as pezpallet::Config>::Bar` doesn't implement `std::fmt::Debug`
--> tests/pezpallet_ui/call_argument_invalid_bound_2.rs:38:36
|
38 | pub fn foo(origin: OriginFor<T>, _bar: T::Bar) -> DispatchResultWithPostInfo {
| ^^^^ `<T as pallet::Config>::Bar` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
| ^^^^ `<T as pezpallet::Config>::Bar` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
|
= help: the trait `std::fmt::Debug` is not implemented for `<T as pallet::Config>::Bar`
= note: required for `&<T as pallet::Config>::Bar` to implement `std::fmt::Debug`
= note: required for the cast from `&&<T as pallet::Config>::Bar` to `&dyn std::fmt::Debug`
= help: the trait `std::fmt::Debug` is not implemented for `<T as pezpallet::Config>::Bar`
= note: required for `&<T as pezpallet::Config>::Bar` to implement `std::fmt::Debug`
= note: required for the cast from `&&<T as pezpallet::Config>::Bar` to `&dyn std::fmt::Debug`
error[E0277]: the trait bound `<T as pallet::Config>::Bar: Clone` is not satisfied
--> tests/pallet_ui/call_argument_invalid_bound_2.rs:38:36
error[E0277]: the trait bound `<T as pezpallet::Config>::Bar: Clone` is not satisfied
--> tests/pezpallet_ui/call_argument_invalid_bound_2.rs:38:36
|
38 | pub fn foo(origin: OriginFor<T>, _bar: T::Bar) -> DispatchResultWithPostInfo {
| ^^^^ the trait `Clone` is not implemented for `<T as pallet::Config>::Bar`
| ^^^^ the trait `Clone` is not implemented for `<T as pezpallet::Config>::Bar`
error[E0369]: binary operation `==` cannot be applied to type `&<T as pallet::Config>::Bar`
--> tests/pallet_ui/call_argument_invalid_bound_2.rs:38:36
error[E0369]: binary operation `==` cannot be applied to type `&<T as pezpallet::Config>::Bar`
--> tests/pezpallet_ui/call_argument_invalid_bound_2.rs:38:36
|
38 | pub fn foo(origin: OriginFor<T>, _bar: T::Bar) -> DispatchResultWithPostInfo {
| ^^^^
error[E0277]: the trait bound `<T as pallet::Config>::Bar: Encode` is not satisfied
--> tests/pallet_ui/call_argument_invalid_bound_2.rs:38:36
error[E0277]: the trait bound `<T as pezpallet::Config>::Bar: Encode` is not satisfied
--> tests/pezpallet_ui/call_argument_invalid_bound_2.rs:38:36
|
18 | #[frame_support::pallet]
| ------------------------ required by a bound introduced by this call
18 | #[pezframe_support::pezpallet]
| ------------------------------ required by a bound introduced by this call
...
38 | pub fn foo(origin: OriginFor<T>, _bar: T::Bar) -> DispatchResultWithPostInfo {
| ^^^^ the trait `WrapperTypeEncode` is not implemented for `<T as pallet::Config>::Bar`
| ^^^^ the trait `WrapperTypeEncode` is not implemented for `<T as pezpallet::Config>::Bar`
|
= note: required for `<T as pallet::Config>::Bar` to implement `Encode`
= note: required for `<T as pezpallet::Config>::Bar` to implement `Encode`
error[E0277]: the trait bound `<T as pallet::Config>::Bar: Decode` is not satisfied
--> tests/pallet_ui/call_argument_invalid_bound_2.rs:38:42
error[E0277]: the trait bound `<T as pezpallet::Config>::Bar: Decode` is not satisfied
--> tests/pezpallet_ui/call_argument_invalid_bound_2.rs:38:42
|
38 | pub fn foo(origin: OriginFor<T>, _bar: T::Bar) -> DispatchResultWithPostInfo {
| ^^^^^^ the trait `WrapperTypeDecode` is not implemented for `<T as pallet::Config>::Bar`
| ^^^^^^ the trait `WrapperTypeDecode` is not implemented for `<T as pezpallet::Config>::Bar`
|
= note: required for `<T as pallet::Config>::Bar` to implement `Decode`
= note: required for `<T as pezpallet::Config>::Bar` to implement `Decode`
error: unused variable: `origin`
--> tests/pallet_ui/call_argument_invalid_bound_2.rs:38:14
--> tests/pezpallet_ui/call_argument_invalid_bound_2.rs:38:14
|
38 | pub fn foo(origin: OriginFor<T>, _bar: T::Bar) -> DispatchResultWithPostInfo {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin`
@@ -1,19 +1,19 @@
error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/call_argument_invalid_bound_3.rs:38:20
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/call_argument_invalid_bound_3.rs:38:23
|
38 | #[pallet::weight(0)]
| ^
38 | #[pezpallet::weight(0)]
| ^
|
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error[E0277]: `Bar` doesn't implement `std::fmt::Debug`
--> tests/pallet_ui/call_argument_invalid_bound_3.rs:40:36
--> tests/pezpallet_ui/call_argument_invalid_bound_3.rs:40:36
|
40 | pub fn foo(origin: OriginFor<T>, _bar: Bar) -> DispatchResultWithPostInfo {
| ^^^^ `Bar` cannot be formatted using `{:?}`
@@ -29,7 +29,7 @@ help: consider annotating `Bar` with `#[derive(Debug)]`
|
error: unused variable: `origin`
--> tests/pallet_ui/call_argument_invalid_bound_3.rs:40:14
--> tests/pezpallet_ui/call_argument_invalid_bound_3.rs:40:14
|
40 | pub fn foo(origin: OriginFor<T>, _bar: Bar) -> DispatchResultWithPostInfo {
| ^^^^^^ help: if this is intentional, prefix it with an underscore: `_origin`
@@ -1,11 +1,11 @@
error: Call indices are conflicting: Both functions foo and bar are at index 10
--> tests/pallet_ui/call_conflicting_indices.rs:32:10
--> tests/pezpallet_ui/call_conflicting_indices.rs:32:10
|
32 | pub fn foo(origin: OriginFor<T>) -> DispatchResultWithPostInfo {}
| ^^^
error: Call indices are conflicting: Both functions foo and bar are at index 10
--> tests/pallet_ui/call_conflicting_indices.rs:36:10
--> tests/pezpallet_ui/call_conflicting_indices.rs:36:10
|
36 | pub fn bar(origin: OriginFor<T>) -> DispatchResultWithPostInfo {}
| ^^^
@@ -1,5 +1,5 @@
error: Invalid pallet::call, feeless_if closure must have same number of arguments as the dispatchable function
--> tests/pallet_ui/call_feeless_invalid_closure_arg1.rs:31:24
error: Invalid pezpallet::call, feeless_if closure must have same number of arguments as the dispatchable function
--> tests/pezpallet_ui/call_feeless_invalid_closure_arg1.rs:31:27
|
31 | #[pallet::feeless_if(|| -> bool { true })]
| ^
31 | #[pezpallet::feeless_if(|| -> bool { true })]
| ^
@@ -1,5 +1,5 @@
error: Invalid type: expected `&OriginFor<T>`
--> tests/pallet_ui/call_feeless_invalid_closure_arg2.rs:31:28
--> tests/pezpallet_ui/call_feeless_invalid_closure_arg2.rs:31:31
|
31 | #[pallet::feeless_if(|_: bool| -> bool { true })]
| ^^^^
31 | #[pezpallet::feeless_if(|_: bool| -> bool { true })]
| ^^^^
@@ -1,5 +1,5 @@
error: Invalid pallet::call, feeless_if closure argument must have a reference to the same type as the dispatchable function argument
--> tests/pallet_ui/call_feeless_invalid_closure_arg3.rs:31:43
error: Invalid pezpallet::call, feeless_if closure argument must have a reference to the same type as the dispatchable function argument
--> tests/pezpallet_ui/call_feeless_invalid_closure_arg3.rs:31:46
|
31 | #[pallet::feeless_if(|_: &OriginFor<T>, _s: &u32| -> bool { true })]
| ^^
31 | #[pezpallet::feeless_if(|_: &OriginFor<T>, _s: &u32| -> bool { true })]
| ^^
@@ -1,5 +1,5 @@
error: Invalid pallet::call, feeless_if closure must return `bool`
--> tests/pallet_ui/call_feeless_invalid_closure_return.rs:31:43
error: Invalid pezpallet::call, feeless_if closure must return `bool`
--> tests/pezpallet_ui/call_feeless_invalid_closure_return.rs:31:46
|
31 | #[pallet::feeless_if(|_: &OriginFor<T>| -> u32 { 0 })]
| ^
31 | #[pezpallet::feeless_if(|_: &OriginFor<T>| -> u32 { 0 })]
| ^
@@ -1,11 +1,11 @@
error: Invalid feeless_if attribute: expected a closure
--> tests/pallet_ui/call_feeless_invalid_type.rs:31:24
--> tests/pezpallet_ui/call_feeless_invalid_type.rs:31:27
|
31 | #[pallet::feeless_if(0)]
| ^
31 | #[pezpallet::feeless_if(0)]
| ^
error: expected `|`
--> tests/pallet_ui/call_feeless_invalid_type.rs:31:24
--> tests/pezpallet_ui/call_feeless_invalid_type.rs:31:27
|
31 | #[pallet::feeless_if(0)]
| ^
31 | #[pezpallet::feeless_if(0)]
| ^
@@ -1,5 +1,5 @@
error: Number literal must not have a suffix
--> tests/pallet_ui/call_index_has_suffix.rs:31:30
--> tests/pezpallet_ui/call_index_has_suffix.rs:31:33
|
31 | #[pallet::call_index(0something)]
| ^^^^^^^^^^
31 | #[pezpallet::call_index(0something)]
| ^^^^^^^^^^
@@ -1,5 +1,5 @@
error: expected one of: `weight`, `call_index`, `feeless_if`, `authorize`, `weight_of_authorize`
--> tests/pallet_ui/call_invalid_attr.rs:31:13
--> tests/pezpallet_ui/call_invalid_attr.rs:31:16
|
31 | #[pallet::weird_attr]
| ^^^^^^^^^^
31 | #[pezpallet::weird_attr]
| ^^^^^^^^^^
@@ -1,5 +1,5 @@
error: Invalid pallet::call, only method accepted
--> tests/pallet_ui/call_invalid_const.rs:34:3
error: Invalid pezpallet::call, only method accepted
--> tests/pezpallet_ui/call_invalid_const.rs:34:3
|
34 | const Foo: u8 = 3u8;
| ^^^^^
@@ -1,5 +1,5 @@
error: number too large to fit in target type
--> tests/pallet_ui/call_invalid_index.rs:32:24
--> tests/pezpallet_ui/call_invalid_index.rs:32:27
|
32 | #[pallet::call_index(256)]
| ^^^
32 | #[pezpallet::call_index(256)]
| ^^^
@@ -1,5 +1,5 @@
error: Invalid type: expected `OriginFor<T>` or `T::RuntimeOrigin`
--> tests/pallet_ui/call_invalid_origin_type.rs:34:22
--> tests/pezpallet_ui/call_invalid_origin_type.rs:34:22
|
34 | pub fn foo(origin: u8) {}
| ^^
@@ -1,5 +1,5 @@
error: expected `DispatchResultWithPostInfo` or `DispatchResult`
--> tests/pallet_ui/call_invalid_return.rs:34:39
--> tests/pezpallet_ui/call_invalid_return.rs:34:39
|
34 | pub fn foo(origin: OriginFor<T>) -> ::DispatchResult { todo!() }
| ^
@@ -1,5 +1,5 @@
error: Invalid pallet::call, dispatchable function must be public: `pub fn`
--> tests/pallet_ui/call_invalid_vis.rs:37:3
error: Invalid pezpallet::call, dispatchable function must be public: `pub fn`
--> tests/pezpallet_ui/call_invalid_vis.rs:37:3
|
37 | fn foo(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
| ^^
@@ -1,5 +1,5 @@
error: Invalid pallet::call, dispatchable function must be public: `pub fn`
--> tests/pallet_ui/call_invalid_vis_2.rs:37:3
error: Invalid pezpallet::call, dispatchable function must be public: `pub fn`
--> tests/pezpallet_ui/call_invalid_vis_2.rs:37:3
|
37 | pub(crate) fn foo(origin: OriginFor<T>) -> DispatchResultWithPostInfo {
| ^^^
@@ -1,11 +1,11 @@
error: use of deprecated constant `pallet::warnings::ImplicitCallIndex_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ImplicitCallIndex_0::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
Please instead ensure that all calls have a `pezpallet::call_index` attribute or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/12891>
<https://github.com/paritytech/bizinikiwi/pull/11381>
--> tests/pallet_ui/call_missing_index.rs:32:10
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/208>
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/205>
--> tests/pezpallet_ui/call_missing_index.rs:32:10
|
32 | pub fn foo(_: OriginFor<T>) -> DispatchResult {
| ^^^
@@ -13,54 +13,54 @@ error: use of deprecated constant `pallet::warnings::ImplicitCallIndex_0::_w`:
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error: use of deprecated constant `pallet::warnings::ImplicitCallIndex_1::_w`:
error: use of deprecated constant `pezpallet::warnings::ImplicitCallIndex_1::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
Please instead ensure that all calls have a `pezpallet::call_index` attribute or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/12891>
<https://github.com/paritytech/bizinikiwi/pull/11381>
--> tests/pallet_ui/call_missing_index.rs:37:10
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/208>
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/205>
--> tests/pezpallet_ui/call_missing_index.rs:37:10
|
37 | pub fn bar(_: OriginFor<T>) -> DispatchResult {
| ^^^
error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/call_missing_index.rs:31:20
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/call_missing_index.rs:31:23
|
31 | #[pallet::weight(0)]
| ^
31 | #[pezpallet::weight(0)]
| ^
error: use of deprecated constant `pallet::warnings::ConstantWeight_1::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_1::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/call_missing_index.rs:36:20
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/call_missing_index.rs:36:23
|
36 | #[pallet::weight(0)]
| ^
36 | #[pezpallet::weight(0)]
| ^
error: associated function `error_metadata` is never used
--> tests/pallet_ui/call_missing_index.rs:26:12
--> tests/pezpallet_ui/call_missing_index.rs:26:15
|
26 | #[pallet::pallet]
| ^^^^^^ associated function in this implementation
26 | #[pezpallet::pezpallet]
| ^^^^^^^^^ associated function in this implementation
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
error: associated functions `new_call_variant_foo` and `new_call_variant_bar` are never used
--> tests/pallet_ui/call_missing_index.rs:32:10
--> tests/pezpallet_ui/call_missing_index.rs:32:10
|
29 | #[pallet::call]
| ---- associated functions in this implementation
29 | #[pezpallet::call]
| ---- associated functions in this implementation
...
32 | pub fn foo(_: OriginFor<T>) -> DispatchResult {
| ^^^
@@ -1,5 +1,5 @@
error: A pallet::call requires either a concrete `#[pallet::weight($expr)]` or an inherited weight from the `#[pallet:call(weight($type))]` attribute, but none were given.
--> tests/pallet_ui/call_missing_weight.rs:34:7
error: A pezpallet::call requires either a concrete `#[pezpallet::weight($expr)]` or an inherited weight from the `#[pezpallet:call(weight($type))]` attribute, but none were given.
--> tests/pezpallet_ui/call_missing_weight.rs:34:7
|
34 | pub fn foo(origin: OriginFor<T>) -> DispatchResultWithPostInfo {}
| ^^
@@ -1,5 +1,5 @@
error: Invalid pallet::call, too many call_index attributes given
--> tests/pallet_ui/call_multiple_call_index.rs:34:7
error: Invalid pezpallet::call, too many call_index attributes given
--> tests/pezpallet_ui/call_multiple_call_index.rs:34:7
|
34 | pub fn foo(origin: OriginFor<T>) -> DispatchResultWithPostInfo {}
| ^^
@@ -1,5 +1,5 @@
error: Invalid pallet::call, must have at least origin arg
--> tests/pallet_ui/call_no_origin.rs:34:7
error: Invalid pezpallet::call, must have at least origin arg
--> tests/pezpallet_ui/call_no_origin.rs:34:7
|
34 | pub fn foo() {}
| ^^
@@ -1,5 +1,5 @@
error: Invalid pallet::call, require return type DispatchResultWithPostInfo
--> tests/pallet_ui/call_no_return.rs:34:7
error: Invalid pezpallet::call, require return type DispatchResultWithPostInfo
--> tests/pezpallet_ui/call_no_return.rs:34:7
|
34 | pub fn foo(origin: OriginFor<T>) {}
| ^^
@@ -1,5 +1,5 @@
error[E0308]: mismatched types
--> tests/pallet_ui/call_span_for_error.rs:32:15
--> tests/pezpallet_ui/call_span_for_error.rs:32:15
|
32 | return Err(DispatchError::BadOrigin);
| --- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `DispatchErrorWithPostInfo<...>`, found `DispatchError`
@@ -7,9 +7,9 @@ error[E0308]: mismatched types
| arguments to this enum variant are incorrect
|
= note: expected struct `DispatchErrorWithPostInfo<PostDispatchInfo>`
found enum `frame_support::pallet_prelude::DispatchError`
help: the type constructed contains `frame_support::pallet_prelude::DispatchError` due to the type of the argument passed
--> tests/pallet_ui/call_span_for_error.rs:32:11
found enum `pezframe_support::pezpallet_prelude::DispatchError`
help: the type constructed contains `pezframe_support::pezpallet_prelude::DispatchError` due to the type of the argument passed
--> tests/pezpallet_ui/call_span_for_error.rs:32:11
|
32 | return Err(DispatchError::BadOrigin);
| ^^^^------------------------^
@@ -20,7 +20,7 @@ note: tuple variant defined here
|
| Err(#[stable(feature = "rust1", since = "1.0.0")] E),
| ^^^
help: call `Into::into` on this expression to convert `frame_support::pallet_prelude::DispatchError` into `DispatchErrorWithPostInfo<PostDispatchInfo>`
help: call `Into::into` on this expression to convert `pezframe_support::pezpallet_prelude::DispatchError` into `DispatchErrorWithPostInfo<PostDispatchInfo>`
|
32 | return Err(DispatchError::BadOrigin.into());
| +++++++
@@ -1,21 +1,21 @@
error: invalid suffix `something` for number literal
--> tests/pallet_ui/call_weight_argument_has_suffix.rs:32:26
--> tests/pezpallet_ui/call_weight_argument_has_suffix.rs:32:29
|
32 | #[pallet::weight(10_000something)]
| ^^^^^^^^^^^^^^^ invalid suffix `something`
32 | #[pezpallet::weight(10_000something)]
| ^^^^^^^^^^^^^^^ invalid suffix `something`
|
= help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.)
error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/call_weight_argument_has_suffix.rs:32:26
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/call_weight_argument_has_suffix.rs:32:29
|
32 | #[pallet::weight(10_000something)]
| ^^^^^^^^^^^^^^^
32 | #[pezpallet::weight(10_000something)]
| ^^^^^^^^^^^^^^^
|
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
@@ -1,31 +1,31 @@
error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/call_weight_const_warning.rs:32:26
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/call_weight_const_warning.rs:32:29
|
32 | #[pallet::weight(123_u64)]
| ^^^^^^^
32 | #[pezpallet::weight(123_u64)]
| ^^^^^^^
|
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error: associated function `error_metadata` is never used
--> tests/pallet_ui/call_weight_const_warning.rs:26:12
--> tests/pezpallet_ui/call_weight_const_warning.rs:26:15
|
26 | #[pallet::pallet]
| ^^^^^^ associated function in this implementation
26 | #[pezpallet::pezpallet]
| ^^^^^^^^^ associated function in this implementation
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
error: associated function `new_call_variant_foo` is never used
--> tests/pallet_ui/call_weight_const_warning.rs:33:10
--> tests/pezpallet_ui/call_weight_const_warning.rs:33:10
|
29 | #[pallet::call]
| ---- associated function in this implementation
29 | #[pezpallet::call]
| ---- associated function in this implementation
...
33 | pub fn foo(_: OriginFor<T>) -> DispatchResult { Ok(()) }
| ^^^
@@ -1,32 +1,32 @@
error: invalid suffix `custom_prefix` for number literal
--> tests/pallet_ui/call_weight_const_warning_twice.rs:36:26
--> tests/pezpallet_ui/call_weight_const_warning_twice.rs:36:29
|
36 | #[pallet::weight(123_custom_prefix)]
| ^^^^^^^^^^^^^^^^^ invalid suffix `custom_prefix`
36 | #[pezpallet::weight(123_custom_prefix)]
| ^^^^^^^^^^^^^^^^^ invalid suffix `custom_prefix`
|
= help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.)
error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/call_weight_const_warning_twice.rs:32:26
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/call_weight_const_warning_twice.rs:32:29
|
32 | #[pallet::weight(123)]
| ^^^
32 | #[pezpallet::weight(123)]
| ^^^
|
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error: use of deprecated constant `pallet::warnings::ConstantWeight_1::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_1::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/call_weight_const_warning_twice.rs:36:26
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/call_weight_const_warning_twice.rs:36:29
|
36 | #[pallet::weight(123_custom_prefix)]
| ^^^^^^^^^^^^^^^^^
36 | #[pezpallet::weight(123_custom_prefix)]
| ^^^^^^^^^^^^^^^^^
@@ -1,11 +1,11 @@
error: expected `weight`
--> tests/pallet_ui/call_weight_inherited_invalid.rs:36:17
--> tests/pezpallet_ui/call_weight_inherited_invalid.rs:36:20
|
36 | #[pallet::call(invalid)]
| ^^^^^^^
36 | #[pezpallet::call(invalid)]
| ^^^^^^^
error: expected parentheses
--> tests/pallet_ui/call_weight_inherited_invalid.rs:57:17
--> tests/pezpallet_ui/call_weight_inherited_invalid.rs:57:20
|
57 | #[pallet::call = invalid]
| ^
57 | #[pezpallet::call = invalid]
| ^
@@ -1,11 +1,11 @@
error[E0412]: cannot find type `prefix` in this scope
--> tests/pallet_ui/call_weight_inherited_invalid2.rs:39:24
--> tests/pezpallet_ui/call_weight_inherited_invalid2.rs:39:27
|
39 | #[pallet::call(weight(prefix))]
| ^^^^^^ not found in this scope
39 | #[pezpallet::call(weight(prefix))]
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `prefix` in this scope
--> tests/pallet_ui/call_weight_inherited_invalid2.rs:60:26
--> tests/pezpallet_ui/call_weight_inherited_invalid2.rs:60:29
|
60 | #[pallet::call(weight = prefix)]
| ^^^^^^ not found in this scope
60 | #[pezpallet::call(weight = prefix)]
| ^^^^^^ not found in this scope
@@ -1,20 +1,20 @@
error: expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, `dyn`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime
--> tests/pallet_ui/call_weight_inherited_invalid3.rs:39:24
--> tests/pezpallet_ui/call_weight_inherited_invalid3.rs:39:27
|
39 | #[pallet::call(weight(123))]
| ^^^
39 | #[pezpallet::call(weight(123))]
| ^^^
error: expected one of: `for`, parentheses, `fn`, `unsafe`, `extern`, identifier, `::`, `<`, `dyn`, square brackets, `*`, `&`, `!`, `impl`, `_`, lifetime
--> tests/pallet_ui/call_weight_inherited_invalid3.rs:60:26
--> tests/pezpallet_ui/call_weight_inherited_invalid3.rs:60:29
|
60 | #[pallet::call(weight = 123)]
| ^^^
60 | #[pezpallet::call(weight = 123)]
| ^^^
error: unused import: `frame_system::pallet_prelude::*`
--> tests/pallet_ui/call_weight_inherited_invalid3.rs:21:5
error: unused import: `pezframe_system::pezpallet_prelude::*`
--> tests/pezpallet_ui/call_weight_inherited_invalid3.rs:21:5
|
21 | use frame_system::pallet_prelude::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21 | use pezframe_system::pezpallet_prelude::*;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
@@ -1,11 +1,11 @@
error[E0599]: no function or associated item named `foo` found for associated type `<T as parentheses::Config>::WeightInfo` in the current scope
--> tests/pallet_ui/call_weight_inherited_invalid4.rs:41:10
--> tests/pezpallet_ui/call_weight_inherited_invalid4.rs:41:10
|
41 | pub fn foo(_: OriginFor<T>) -> DispatchResult {
| ^^^ function or associated item not found in `<T as Config>::WeightInfo`
error[E0599]: no function or associated item named `foo` found for associated type `<T as assign::Config>::WeightInfo` in the current scope
--> tests/pallet_ui/call_weight_inherited_invalid4.rs:62:10
--> tests/pezpallet_ui/call_weight_inherited_invalid4.rs:62:10
|
62 | pub fn foo(_: OriginFor<T>) -> DispatchResult {
| ^^^ function or associated item not found in `<T as Config>::WeightInfo`
@@ -1,11 +1,11 @@
error: unexpected token, expected `)`
--> tests/pallet_ui/call_weight_inherited_invalid5.rs:31:50
--> tests/pezpallet_ui/call_weight_inherited_invalid5.rs:31:53
|
31 | #[pallet::call(weight(<T as Config>::WeightInfo straycat))]
| ^^^^^^^^
31 | #[pezpallet::call(weight(<T as Config>::WeightInfo straycat))]
| ^^^^^^^^
error: unexpected token, expected `)`
--> tests/pallet_ui/call_weight_inherited_invalid5.rs:51:52
--> tests/pezpallet_ui/call_weight_inherited_invalid5.rs:51:55
|
51 | #[pallet::call(weight = <T as Config>::WeightInfo straycat)]
| ^^^^^^^^
51 | #[pezpallet::call(weight = <T as Config>::WeightInfo straycat)]
| ^^^^^^^^
@@ -1,10 +1,10 @@
error: use of deprecated constant `pallet::warnings::UncheckedWeightWitness_0::_w`:
error: use of deprecated constant `pezpallet::warnings::UncheckedWeightWitness_0::_w`:
It is deprecated to not check weight witness data.
Please instead ensure that all witness data for weight calculation is checked before usage.
For more info see:
<https://github.com/pezkuwichain/pezkuwichain-sdk/pull/1818>
--> tests/pallet_ui/call_weight_unchecked_warning.rs:33:31
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/254>
--> tests/pezpallet_ui/call_weight_unchecked_warning.rs:33:31
|
33 | pub fn foo(_: OriginFor<T>, _unused: u64) -> DispatchResult { Ok(()) }
| ^^^^^^^
@@ -13,19 +13,19 @@ error: use of deprecated constant `pallet::warnings::UncheckedWeightWitness_0::_
= help: to override `-D warnings` add `#[allow(deprecated)]`
error: associated function `error_metadata` is never used
--> tests/pallet_ui/call_weight_unchecked_warning.rs:26:12
--> tests/pezpallet_ui/call_weight_unchecked_warning.rs:26:15
|
26 | #[pallet::pallet]
| ^^^^^^ associated function in this implementation
26 | #[pezpallet::pezpallet]
| ^^^^^^^^^ associated function in this implementation
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
error: associated function `new_call_variant_foo` is never used
--> tests/pallet_ui/call_weight_unchecked_warning.rs:33:10
--> tests/pezpallet_ui/call_weight_unchecked_warning.rs:33:10
|
29 | #[pallet::call]
| ---- associated function in this implementation
29 | #[pezpallet::call]
| ---- associated function in this implementation
...
33 | pub fn foo(_: OriginFor<T>, _unused: u64) -> DispatchResult { Ok(()) }
| ^^^
@@ -1,5 +1,5 @@
error[E0369]: binary operation `!=` cannot be applied to type `NoStorageVersionSet`
--> tests/pallet_ui/compare_unset_storage_version.rs:32:39
--> tests/pezpallet_ui/compare_unset_storage_version.rs:32:39
|
32 | if Self::in_code_storage_version() != Self::on_chain_storage_version() {
| ------------------------------- ^^ -------------------------------- StorageVersion
@@ -7,7 +7,7 @@ error[E0369]: binary operation `!=` cannot be applied to type `NoStorageVersionS
| NoStorageVersionSet
|
note: the foreign item type `NoStorageVersionSet` doesn't implement `PartialEq<StorageVersion>`
--> $WORKSPACE/bizinikiwi/frame/support/src/traits/metadata.rs
--> $WORKSPACE/bizinikiwi/pezframe/support/src/traits/metadata.rs
|
| pub struct NoStorageVersionSet;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not implement `PartialEq<StorageVersion>`
@@ -1,5 +1,5 @@
error: expected one of: `FreezeReason`, `HoldReason`, `LockId`, `SlashReason`, `Task`
--> tests/pallet_ui/composite_enum_unsupported_identifier.rs:27:11
--> tests/pezpallet_ui/composite_enum_unsupported_identifier.rs:27:11
|
27 | pub enum HoldReasons {}
| ^^^^^^^^^^^
@@ -1,5 +1,5 @@
error: Invalid duplicated attribute for `#[pallet::config]`. Please remove duplicates: without_automatic_metadata.
--> tests/pallet_ui/config_duplicate_attr.rs:23:12
error: Invalid duplicated attribute for `#[pezpallet::config]`. Please remove duplicates: without_automatic_metadata.
--> tests/pezpallet_ui/config_duplicate_attr.rs:23:15
|
23 | #[pallet::config(with_default, without_automatic_metadata, without_automatic_metadata)]
| ^^^^^^
23 | #[pezpallet::config(with_default, without_automatic_metadata, without_automatic_metadata)]
| ^^^^^^
@@ -1,5 +1,5 @@
error: Invalid #[pallet::include_metadata] in #[pallet::config], collected type `MyNonScaleTypeInfo` does not implement `TypeInfo` or `Parameter`
--> tests/pallet_ui/config_metadata_non_type_info.rs:28:4
error: Invalid #[pezpallet::include_metadata] in #[pezpallet::config], collected type `MyNonScaleTypeInfo` does not implement `TypeInfo` or `Parameter`
--> tests/pezpallet_ui/config_metadata_non_type_info.rs:28:4
|
28 | #[pallet::include_metadata]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
28 | #[pezpallet::include_metadata]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1,5 +1,5 @@
error: Invalid #[pallet::include_metadata]: conflict with #[pallet::constant]. Pallet constant already collect the metadata for the type.
--> tests/pallet_ui/config_metadata_on_constants.rs:26:10
error: Invalid #[pezpallet::include_metadata]: conflict with #[pezpallet::constant]. Pezpallet constant already collect the metadata for the type.
--> tests/pezpallet_ui/config_metadata_on_constants.rs:26:10
|
26 | #[pallet::include_metadata]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
26 | #[pezpallet::include_metadata]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1,5 +1,5 @@
error: Invalid #[pallet::include_metadata] for `type RuntimeEvent`. The associated type `RuntimeEvent` is already collected in the metadata.
--> tests/pallet_ui/config_metadata_on_events.rs:26:4
error: Invalid #[pezpallet::include_metadata] for `type RuntimeEvent`. The associated type `RuntimeEvent` is already collected in the metadata.
--> tests/pezpallet_ui/config_metadata_on_events.rs:26:4
|
26 | #[pallet::include_metadata]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
26 | #[pezpallet::include_metadata]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1,5 +1,5 @@
error[E0220]: associated type `Block` not found for `Self`
--> tests/pallet_ui/default_config_with_no_default_in_system.rs:25:31
--> tests/pezpallet_ui/default_config_with_no_default_in_system.rs:25:31
|
25 | type MyGetParam2: Get<Self::Block>;
| ^^^^^ there is an associated type `Block` in the trait `frame_system::Config`
| ^^^^^ there is an associated type `Block` in the trait `pezframe_system::Config`
@@ -1,5 +1,5 @@
error: A pallet::call requires either a concrete `#[pallet::weight($expr)]` or an inherited weight from the `#[pallet:call(weight($type))]` attribute, but none were given.
--> tests/pallet_ui/dev_mode_without_arg.rs:39:7
error: A pezpallet::call requires either a concrete `#[pezpallet::weight($expr)]` or an inherited weight from the `#[pezpallet:call(weight($type))]` attribute, but none were given.
--> tests/pezpallet_ui/dev_mode_without_arg.rs:39:7
|
39 | pub fn my_call(_origin: OriginFor<T>) -> DispatchResult {
| ^^
@@ -1,11 +1,11 @@
error: use of deprecated constant `pallet::warnings::ImplicitCallIndex_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ImplicitCallIndex_0::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
Please instead ensure that all calls have a `pezpallet::call_index` attribute or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/12891>
<https://github.com/paritytech/bizinikiwi/pull/11381>
--> tests/pallet_ui/dev_mode_without_arg_call_index.rs:39:10
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/208>
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/205>
--> tests/pezpallet_ui/dev_mode_without_arg_call_index.rs:39:10
|
39 | pub fn my_call(_origin: OriginFor<T>) -> DispatchResult {
| ^^^^^^^
@@ -13,13 +13,13 @@ error: use of deprecated constant `pallet::warnings::ImplicitCallIndex_0::_w`:
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/dev_mode_without_arg_call_index.rs:38:20
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/dev_mode_without_arg_call_index.rs:38:23
|
38 | #[pallet::weight(0)]
| ^
38 | #[pezpallet::weight(0)]
| ^
@@ -1,11 +1,11 @@
error: `_` can only be used in dev_mode. Please specify an appropriate hasher.
--> tests/pallet_ui/dev_mode_without_arg_default_hasher.rs:38:47
--> tests/pezpallet_ui/dev_mode_without_arg_default_hasher.rs:38:47
|
38 | type MyStorageMap<T: Config> = StorageMap<_, _, u32, u64>;
| ^
error[E0432]: unresolved import `pallet`
--> tests/pallet_ui/dev_mode_without_arg_default_hasher.rs:20:9
error[E0432]: unresolved import `pezpallet`
--> tests/pezpallet_ui/dev_mode_without_arg_default_hasher.rs:20:9
|
20 | pub use pallet::*;
| ^^^^^^ help: a similar path exists: `test_pallet::pallet`
20 | pub use pezpallet::*;
| ^^^^^^^^^ help: a similar path exists: `test_pezpallet::pezpallet`
@@ -1,11 +1,11 @@
error: use of deprecated constant `pallet::warnings::ImplicitCallIndex_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ImplicitCallIndex_0::_w`:
It is deprecated to use implicit call indices.
Please instead ensure that all calls have a `pallet::call_index` attribute or put the pallet into `dev` mode.
Please instead ensure that all calls have a `pezpallet::call_index` attribute or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/12891>
<https://github.com/paritytech/bizinikiwi/pull/11381>
--> tests/pallet_ui/dev_mode_without_arg_max_encoded_len.rs:42:10
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/208>
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/205>
--> tests/pezpallet_ui/dev_mode_without_arg_max_encoded_len.rs:42:10
|
42 | pub fn my_call(_origin: OriginFor<T>) -> DispatchResult {
| ^^^^^^^
@@ -13,25 +13,25 @@ error: use of deprecated constant `pallet::warnings::ImplicitCallIndex_0::_w`:
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error: use of deprecated constant `pallet::warnings::ConstantWeight_0::_w`:
error: use of deprecated constant `pezpallet::warnings::ConstantWeight_0::_w`:
It is deprecated to use hard-coded constant as call weight.
Please instead benchmark all calls or put the pallet into `dev` mode.
Please instead benchmark all calls or put the pezpallet into `dev` mode.
For more info see:
<https://github.com/paritytech/bizinikiwi/pull/13798>
--> tests/pallet_ui/dev_mode_without_arg_max_encoded_len.rs:41:20
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/215>
--> tests/pezpallet_ui/dev_mode_without_arg_max_encoded_len.rs:41:23
|
41 | #[pallet::weight(0)]
| ^
41 | #[pezpallet::weight(0)]
| ^
error[E0277]: the trait bound `Vec<u8>: MaxEncodedLen` is not satisfied
--> tests/pallet_ui/dev_mode_without_arg_max_encoded_len.rs:28:12
--> tests/pezpallet_ui/dev_mode_without_arg_max_encoded_len.rs:28:15
|
28 | #[pallet::pallet]
| _______________^
29 | | pub struct Pallet<T>(_);
28 | #[pezpallet::pezpallet]
| __________________^
29 | | pub struct Pezpallet<T>(_);
... |
35 | | #[pallet::storage]
35 | | #[pezpallet::storage]
36 | | type MyStorage<T: Config> = StorageValue<_, Vec<u8>>;
| |__________________^ the trait `MaxEncodedLen` is not implemented for `Vec<u8>`
|
@@ -45,4 +45,5 @@ error[E0277]: the trait bound `Vec<u8>: MaxEncodedLen` is not satisfied
(TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)
(TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)
and $N others
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageMyStorage<T>, Vec<u8>>` to implement `StorageInfoTrait`
= note: required for `StorageValue<_GeneratedPrefixForStorageMyStorage<T>, Vec<u8>>` to implement `StorageInfoTrait`
= note: consider using `--verbose` to print the full type name to the console
@@ -1,5 +1,5 @@
error: Invalid duplicated attribute
--> tests/pallet_ui/duplicate_call_attr.rs:39:12
--> tests/pezpallet_ui/duplicate_call_attr.rs:39:15
|
39 | #[pallet::call]
| ^^^^
39 | #[pezpallet::call]
| ^^^^
@@ -1,47 +1,47 @@
error: Duplicate storage prefixes found for `Foo`
--> tests/pallet_ui/duplicate_storage_prefix.rs:32:29
--> tests/pezpallet_ui/duplicate_storage_prefix.rs:32:32
|
32 | #[pallet::storage_prefix = "Foo"]
| ^^^^^
32 | #[pezpallet::storage_prefix = "Foo"]
| ^^^^^
error: Duplicate storage prefixes found for `Foo`
--> tests/pallet_ui/duplicate_storage_prefix.rs:29:7
--> tests/pezpallet_ui/duplicate_storage_prefix.rs:29:7
|
29 | type Foo<T> = StorageValue<_, u8>;
| ^^^
error: Duplicate storage prefixes found for `CounterForBar`, used for counter associated to counted storage map
--> tests/pallet_ui/duplicate_storage_prefix.rs:39:7
--> tests/pezpallet_ui/duplicate_storage_prefix.rs:39:7
|
39 | type Bar<T> = CountedStorageMap<_, Twox64Concat, u16, u16>;
| ^^^
error: Duplicate storage prefixes found for `CounterForBar`
--> tests/pallet_ui/duplicate_storage_prefix.rs:36:7
--> tests/pezpallet_ui/duplicate_storage_prefix.rs:36:7
|
36 | type CounterForBar<T> = StorageValue<_, u16>;
| ^^^^^^^^^^^^^
error[E0412]: cannot find type `_GeneratedPrefixForStorageFoo` in this scope
--> tests/pallet_ui/duplicate_storage_prefix.rs:29:7
--> tests/pezpallet_ui/duplicate_storage_prefix.rs:29:7
|
29 | type Foo<T> = StorageValue<_, u8>;
| ^^^ not found in this scope
error[E0412]: cannot find type `_GeneratedPrefixForStorageNotFoo` in this scope
--> tests/pallet_ui/duplicate_storage_prefix.rs:33:7
--> tests/pezpallet_ui/duplicate_storage_prefix.rs:33:7
|
33 | type NotFoo<T> = StorageValue<_, u16>;
| ^^^^^^ not found in this scope
error[E0412]: cannot find type `_GeneratedPrefixForStorageCounterForBar` in this scope
--> tests/pallet_ui/duplicate_storage_prefix.rs:36:7
--> tests/pezpallet_ui/duplicate_storage_prefix.rs:36:7
|
36 | type CounterForBar<T> = StorageValue<_, u16>;
| ^^^^^^^^^^^^^ not found in this scope
error[E0412]: cannot find type `_GeneratedPrefixForStorageBar` in this scope
--> tests/pallet_ui/duplicate_storage_prefix.rs:39:7
--> tests/pezpallet_ui/duplicate_storage_prefix.rs:39:7
|
39 | type Bar<T> = CountedStorageMap<_, Twox64Concat, u16, u16>;
| ^^^ not found in this scope
@@ -1,5 +1,5 @@
error[E0277]: the trait bound `MyError: PalletError` is not satisfied
--> tests/pallet_ui/error_does_not_derive_pallet_error.rs:29:15
--> tests/pezpallet_ui/error_does_not_derive_pezpallet_error.rs:29:15
|
29 | CustomError(crate::MyError),
| ^^^^^^^^^^^^^^ the trait `PalletError` is not implemented for `MyError`
@@ -1,5 +1,5 @@
error: Invalid pallet::error, where clause is not allowed on pallet error item
--> tests/pallet_ui/error_where_clause.rs:36:20
error: Invalid pezpallet::error, where clause is not allowed on pezpallet error item
--> tests/pezpallet_ui/error_where_clause.rs:36:20
|
36 | pub enum Error<T> where u32: From<u8> {}
| ^^^^^
@@ -1,5 +1,5 @@
error: Invalid pallet::error, expected item enum
--> tests/pallet_ui/error_wrong_item.rs:36:2
error: Invalid pezpallet::error, expected item enum
--> tests/pezpallet_ui/error_wrong_item.rs:36:2
|
36 | pub struct Foo;
| ^^^
@@ -1,5 +1,5 @@
error: expected `Error`
--> tests/pallet_ui/error_wrong_item_name.rs:36:11
--> tests/pezpallet_ui/error_wrong_item_name.rs:36:11
|
36 | pub enum Foo<T> {}
| ^^^
@@ -1,33 +1,33 @@
error: unused import: `event`
--> tests/pallet_ui/event_deprecated_runtime_event.rs:38:12
--> tests/pezpallet_ui/event_deprecated_runtime_event.rs:38:15
|
38 | #[pallet::event]
| ^^^^^
38 | #[pezpallet::event]
| ^^^^^
|
= note: `-D unused-imports` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_imports)]`
error: use of deprecated constant `pallet::RuntimeEvent::_w`:
It is deprecated to have `RuntimeEvent` associated type in the pallet config.
error: use of deprecated constant `pezpallet::RuntimeEvent::_w`:
It is deprecated to have `RuntimeEvent` associated type in the pezpallet config.
Please instead remove it as it is redundant since associated bound gets appended automatically:
pub trait Config: frame_system::Config<RuntimeEvent: From<Event<Self>>> { }.
pub trait Config: pezframe_system::Config<RuntimeEvent: From<Event<Self>>> { }.
For more info see:
<https://github.com/pezkuwichain/pezkuwichain-sdk/pull/7229>
--> tests/pallet_ui/event_deprecated_runtime_event.rs:26:8
<https://github.com/pezkuwichain/pezkuwi-sdk/issues/270>
--> tests/pezpallet_ui/event_deprecated_runtime_event.rs:26:8
|
26 | type RuntimeEvent: IsType<<Self as frame_system::Config>::RuntimeEvent> + From<Event<Self>>;
26 | type RuntimeEvent: IsType<<Self as pezframe_system::Config>::RuntimeEvent> + From<Event<Self>>;
| ^^^^^^^^^^^^
|
= note: `-D deprecated` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(deprecated)]`
error: associated function `error_metadata` is never used
--> tests/pallet_ui/event_deprecated_runtime_event.rs:29:12
--> tests/pezpallet_ui/event_deprecated_runtime_event.rs:29:15
|
29 | #[pallet::pallet]
| ^^^^^^ associated function in this implementation
29 | #[pezpallet::pezpallet]
| ^^^^^^^^^ associated function in this implementation
|
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
@@ -1,21 +1,21 @@
error[E0277]: the trait bound `<T as pallet::Config>::Bar: Clone` is not satisfied
--> tests/pallet_ui/event_field_not_member.rs:40:7
error[E0277]: the trait bound `<T as pezpallet::Config>::Bar: Clone` is not satisfied
--> tests/pezpallet_ui/event_field_not_member.rs:40:7
|
40 | B { b: T::Bar },
| ^ the trait `Clone` is not implemented for `<T as pallet::Config>::Bar`
| ^ the trait `Clone` is not implemented for `<T as pezpallet::Config>::Bar`
error[E0369]: binary operation `==` cannot be applied to type `&<T as pallet::Config>::Bar`
--> tests/pallet_ui/event_field_not_member.rs:40:7
error[E0369]: binary operation `==` cannot be applied to type `&<T as pezpallet::Config>::Bar`
--> tests/pezpallet_ui/event_field_not_member.rs:40:7
|
40 | B { b: T::Bar },
| ^
error[E0277]: `<T as pallet::Config>::Bar` doesn't implement `std::fmt::Debug`
--> tests/pallet_ui/event_field_not_member.rs:40:7
error[E0277]: `<T as pezpallet::Config>::Bar` doesn't implement `std::fmt::Debug`
--> tests/pezpallet_ui/event_field_not_member.rs:40:7
|
40 | B { b: T::Bar },
| ^ `<T as pallet::Config>::Bar` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
| ^ `<T as pezpallet::Config>::Bar` cannot be formatted using `{:?}` because it doesn't implement `std::fmt::Debug`
|
= help: the trait `std::fmt::Debug` is not implemented for `<T as pallet::Config>::Bar`
= note: required for `&<T as pallet::Config>::Bar` to implement `std::fmt::Debug`
= note: required for the cast from `&&<T as pallet::Config>::Bar` to `&dyn std::fmt::Debug`
= help: the trait `std::fmt::Debug` is not implemented for `<T as pezpallet::Config>::Bar`
= note: required for `&<T as pezpallet::Config>::Bar` to implement `std::fmt::Debug`
= note: required for the cast from `&&<T as pezpallet::Config>::Bar` to `&dyn std::fmt::Debug`
@@ -1,5 +1,5 @@
error: Invalid pallet::event, expected enum item
--> tests/pallet_ui/event_wrong_item.rs:36:2
error: Invalid pezpallet::event, expected enum item
--> tests/pezpallet_ui/event_wrong_item.rs:36:2
|
36 | pub struct Foo;
| ^^^
@@ -1,5 +1,5 @@
error: expected `Event`
--> tests/pallet_ui/event_wrong_item_name.rs:36:11
--> tests/pezpallet_ui/event_wrong_item_name.rs:36:11
|
36 | pub enum Foo {}
| ^^^
@@ -1,5 +1,5 @@
error: `#[pallet::genesis_config]` and `#[pallet::genesis_build]` attributes must be either both used or both not used, instead genesis_config is unused and genesis_build is used
--> tests/pallet_ui/genesis_inconsistent_build_config.rs:19:1
error: `#[pezpallet::genesis_config]` and `#[pezpallet::genesis_build]` attributes must be either both used or both not used, instead genesis_config is unused and genesis_build is used
--> tests/pezpallet_ui/genesis_inconsistent_build_config.rs:19:1
|
19 | mod pallet {
19 | mod pezpallet {
| ^^^
@@ -1,13 +1,13 @@
error: Invalid genesis builder: expected `BuildGenesisConfig` (or the deprecated `GenesisBuild<T>` or `GenesisBuild<T, I>`)
--> tests/pallet_ui/genesis_invalid_generic.rs:36:7
--> tests/pezpallet_ui/genesis_invalid_generic.rs:36:7
|
36 | impl GenesisBuild for GenesisConfig {}
| ^^^^^^^^^^^^
error: expected `<`
--> tests/pallet_ui/genesis_invalid_generic.rs:18:1
--> tests/pezpallet_ui/genesis_invalid_generic.rs:18:1
|
18 | #[frame_support::pallet]
| ^^^^^^^^^^^^^^^^^^^^^^^^
18 | #[pezframe_support::pezpallet]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: this error originates in the attribute macro `frame_support::pallet` (in Nightly builds, run with -Z macro-backtrace for more info)
= note: this error originates in the attribute macro `pezframe_support::pezpallet` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -1,5 +1,5 @@
error: Invalid pallet::genesis_build, expected impl<..> GenesisBuild<..> for GenesisConfig<..>
--> tests/pallet_ui/genesis_wrong_name.rs:36:2
error: Invalid pezpallet::genesis_build, expected impl<..> GenesisBuild<..> for GenesisConfig<..>
--> tests/pezpallet_ui/genesis_wrong_name.rs:36:2
|
36 | impl Foo {}
| ^^^^
@@ -1,5 +1,5 @@
error: Invalid pallet::composite_enum, expected enum item
--> tests/pallet_ui/hold_reason_non_enum.rs:27:2
error: Invalid pezpallet::composite_enum, expected enum item
--> tests/pezpallet_ui/hold_reason_non_enum.rs:27:2
|
27 | pub struct HoldReason;
| ^^^
@@ -1,5 +1,5 @@
error: Invalid pallet::composite_enum, `HoldReason` must be public
--> tests/pallet_ui/hold_reason_not_pub.rs:27:5
error: Invalid pezpallet::composite_enum, `HoldReason` must be public
--> tests/pezpallet_ui/hold_reason_not_pub.rs:27:5
|
27 | enum HoldReason {}
| ^^^^
@@ -1,15 +1,15 @@
error[E0107]: missing generics for trait `Hooks`
--> tests/pallet_ui/hooks_invalid_item.rs:29:18
--> tests/pezpallet_ui/hooks_invalid_item.rs:29:18
|
29 | impl<T: Config> Hooks for Pallet<T> {}
29 | impl<T: Config> Hooks for Pezpallet<T> {}
| ^^^^^ expected 1 generic argument
|
note: trait defined here, with 1 generic parameter: `BlockNumber`
--> $WORKSPACE/bizinikiwi/frame/support/src/traits/hooks.rs
--> $WORKSPACE/bizinikiwi/pezframe/support/src/traits/hooks.rs
|
| pub trait Hooks<BlockNumber> {
| ^^^^^ -----------
help: add missing generic argument
|
29 | impl<T: Config> Hooks<BlockNumber> for Pallet<T> {}
29 | impl<T: Config> Hooks<BlockNumber> for Pezpallet<T> {}
| +++++++++++++
@@ -1,29 +1,29 @@
error: Invalid generic declaration, trait is defined with instance but generic use none
--> tests/pallet_ui/inconsistent_instance_1.rs:27:20
--> tests/pezpallet_ui/inconsistent_instance_1.rs:27:23
|
27 | pub struct Pallet<T>(core::marker::PhantomData<T>);
| ^
27 | pub struct Pezpallet<T>(core::marker::PhantomData<T>);
| ^
error: Invalid generic declaration, trait is defined with instance but generic use none
--> tests/pallet_ui/inconsistent_instance_1.rs:33:7
--> tests/pezpallet_ui/inconsistent_instance_1.rs:33:7
|
33 | impl<T: Config> Pallet<T> {}
33 | impl<T: Config> Pezpallet<T> {}
| ^
error: Invalid generic declaration, trait is defined with instance but generic use none
--> tests/pallet_ui/inconsistent_instance_1.rs:33:18
--> tests/pezpallet_ui/inconsistent_instance_1.rs:33:18
|
33 | impl<T: Config> Pallet<T> {}
| ^^^^^^
33 | impl<T: Config> Pezpallet<T> {}
| ^^^^^^^^^
error: Invalid generic declaration, trait is defined with instance but generic use none
--> tests/pallet_ui/inconsistent_instance_1.rs:30:47
--> tests/pezpallet_ui/inconsistent_instance_1.rs:30:47
|
30 | impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
| ^^^^^^
30 | impl<T: Config> Hooks<BlockNumberFor<T>> for Pezpallet<T> {}
| ^^^^^^^^^
error: Invalid generic declaration, trait is defined with instance but generic use none
--> tests/pallet_ui/inconsistent_instance_1.rs:30:7
--> tests/pezpallet_ui/inconsistent_instance_1.rs:30:7
|
30 | impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {}
30 | impl<T: Config> Hooks<BlockNumberFor<T>> for Pezpallet<T> {}
| ^
@@ -1,29 +1,29 @@
error: Invalid generic declaration, trait is defined without instance but generic use some
--> tests/pallet_ui/inconsistent_instance_2.rs:27:20
--> tests/pezpallet_ui/inconsistent_instance_2.rs:27:23
|
27 | pub struct Pallet<T, I = ()>(core::marker::PhantomData<(T, I)>);
| ^
27 | pub struct Pezpallet<T, I = ()>(core::marker::PhantomData<(T, I)>);
| ^
error: Invalid generic declaration, trait is defined without instance but generic use some
--> tests/pallet_ui/inconsistent_instance_2.rs:33:7
--> tests/pezpallet_ui/inconsistent_instance_2.rs:33:7
|
33 | impl<T: Config<I>, I: 'static> Pallet<T, I> {}
33 | impl<T: Config<I>, I: 'static> Pezpallet<T, I> {}
| ^
error: Invalid generic declaration, trait is defined without instance but generic use some
--> tests/pallet_ui/inconsistent_instance_2.rs:33:33
--> tests/pezpallet_ui/inconsistent_instance_2.rs:33:33
|
33 | impl<T: Config<I>, I: 'static> Pallet<T, I> {}
| ^^^^^^
33 | impl<T: Config<I>, I: 'static> Pezpallet<T, I> {}
| ^^^^^^^^^
error: Invalid generic declaration, trait is defined without instance but generic use some
--> tests/pallet_ui/inconsistent_instance_2.rs:30:62
--> tests/pezpallet_ui/inconsistent_instance_2.rs:30:62
|
30 | impl<T: Config<I>, I: 'static> Hooks<BlockNumberFor<T>> for Pallet<T, I> {}
| ^^^^^^
30 | impl<T: Config<I>, I: 'static> Hooks<BlockNumberFor<T>> for Pezpallet<T, I> {}
| ^^^^^^^^^
error: Invalid generic declaration, trait is defined without instance but generic use some
--> tests/pallet_ui/inconsistent_instance_2.rs:30:7
--> tests/pezpallet_ui/inconsistent_instance_2.rs:30:7
|
30 | impl<T: Config<I>, I: 'static> Hooks<BlockNumberFor<T>> for Pallet<T, I> {}
30 | impl<T: Config<I>, I: 'static> Hooks<BlockNumberFor<T>> for Pezpallet<T, I> {}
| ^
@@ -1,8 +1,8 @@
error[E0046]: not all trait items implemented, missing: `Call`, `Error`, `INHERENT_IDENTIFIER`, `create_inherent`, `is_inherent`
--> tests/pallet_ui/inherent_check_inner_span.rs:36:2
--> tests/pezpallet_ui/inherent_check_inner_span.rs:36:2
|
36 | impl<T: Config> ProvideInherent for Pallet<T> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Call`, `Error`, `INHERENT_IDENTIFIER`, `create_inherent`, `is_inherent` in implementation
36 | impl<T: Config> ProvideInherent for Pezpallet<T> {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `Call`, `Error`, `INHERENT_IDENTIFIER`, `create_inherent`, `is_inherent` in implementation
|
= help: implement the missing item: `type Call = /* Type */;`
= help: implement the missing item: `type Error = /* Type */;`
@@ -1,5 +1,5 @@
error: Invalid pallet::inherent, expected impl<..> ProvideInherent for Pallet<..>
--> tests/pallet_ui/inherent_invalid_item.rs:36:2
error: Invalid pezpallet::inherent, expected impl<..> ProvideInherent for Pezpallet<..>
--> tests/pezpallet_ui/inherent_invalid_item.rs:36:2
|
36 | impl Foo {}
| ^^^^
@@ -1,5 +1,5 @@
error: Invalid duplicated `LockId` definition
--> tests/pallet_ui/lock_id_duplicate.rs:30:14
--> tests/pezpallet_ui/lock_id_duplicate.rs:30:14
|
30 | pub enum LockId {}
| ^^^^^^
@@ -1,13 +1,13 @@
error[E0658]: non-inline modules in proc macro input are unstable
--> tests/pallet_ui/mod_not_inlined.rs:19:1
--> tests/pezpallet_ui/mod_not_inlined.rs:19:1
|
19 | mod foo;
| ^^^^^^^^
|
= note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information
error: Invalid pallet definition, expected mod to be inlined.
--> tests/pallet_ui/mod_not_inlined.rs:19:1
error: Invalid pezpallet definition, expected mod to be inlined.
--> tests/pezpallet_ui/mod_not_inlined.rs:19:1
|
19 | mod foo;
| ^^^
@@ -1,5 +1,5 @@
error: `#[pallet:no_default_bounds]` can only be used if `#[pallet::config(with_default)]` has been specified
--> tests/pallet_ui/no_default_bounds_but_missing_with_default.rs:26:4
error: `#[pezpallet:no_default_bounds]` can only be used if `#[pezpallet::config(with_default)]` has been specified
--> tests/pezpallet_ui/no_default_bounds_but_missing_with_default.rs:26:4
|
26 | #[pallet::no_default_bounds]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
26 | #[pezpallet::no_default_bounds]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1,5 +1,5 @@
error: `#[pallet::no_default]` can only be used if `#[pallet::config(with_default)]` has been specified
--> tests/pallet_ui/no_default_but_missing_with_default.rs:26:4
error: `#[pezpallet::no_default]` can only be used if `#[pezpallet::config(with_default)]` has been specified
--> tests/pezpallet_ui/no_default_but_missing_with_default.rs:26:4
|
26 | #[pallet::no_default]
| ^^^^^^^^^^^^^^^^^^^^
26 | #[pezpallet::no_default]
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -1,11 +1,11 @@
error: Invalid pallet::storage, cannot find `Hasher` generic, required for `StorageMap`.
--> tests/pallet_ui/non_dev_mode_storage_map_explicit_key_default_hasher.rs:38:43
error: Invalid pezpallet::storage, cannot find `Hasher` generic, required for `StorageMap`.
--> tests/pezpallet_ui/non_dev_mode_storage_map_explicit_key_default_hasher.rs:38:43
|
38 | type MyStorageMap<T: Config> = StorageMap<Key = u32, Value = u64>;
| ^
error[E0432]: unresolved import `pallet`
--> tests/pallet_ui/non_dev_mode_storage_map_explicit_key_default_hasher.rs:20:9
error[E0432]: unresolved import `pezpallet`
--> tests/pezpallet_ui/non_dev_mode_storage_map_explicit_key_default_hasher.rs:20:9
|
20 | pub use pallet::*;
| ^^^^^^ help: a similar path exists: `test_pallet::pallet`
20 | pub use pezpallet::*;
| ^^^^^^^^^ help: a similar path exists: `test_pezpallet::pezpallet`
@@ -86,7 +86,7 @@ impl pezframe_system::Config for Runtime {
type BlockLength = ();
type DbWeight = ();
type Version = ();
type PezpalletInfo = PezpalletInfo;
type PalletInfo = PalletInfo;
type AccountData = ();
type OnNewAccount = ();
type OnKilledAccount = ();
@@ -16,7 +16,7 @@
// limitations under the License.
use codec::{Decode, DecodeWithMemTracking, Encode};
use pezframe_support::PezpalletError;
use pezframe_support::PalletError;
#[pezframe_support::pezpallet]
#[allow(unused_imports)]
@@ -33,7 +33,7 @@ pub mod pezpallet {
}
}
#[derive(Encode, Decode, DecodeWithMemTracking, PezpalletError, scale_info::TypeInfo)]
#[derive(Encode, Decode, DecodeWithMemTracking, PalletError, scale_info::TypeInfo)]
pub enum MyError {
Foo,
Bar,
@@ -42,17 +42,17 @@ pub enum MyError {
Wrapper(Wrapper),
}
#[derive(Encode, Decode, DecodeWithMemTracking, PezpalletError, scale_info::TypeInfo)]
#[derive(Encode, Decode, DecodeWithMemTracking, PalletError, scale_info::TypeInfo)]
pub enum NestedError {
Quux,
}
#[derive(Encode, Decode, DecodeWithMemTracking, PezpalletError, scale_info::TypeInfo)]
#[derive(Encode, Decode, DecodeWithMemTracking, PalletError, scale_info::TypeInfo)]
pub struct MyStruct {
field: u8,
}
#[derive(Encode, Decode, DecodeWithMemTracking, PezpalletError, scale_info::TypeInfo)]
#[derive(Encode, Decode, DecodeWithMemTracking, PalletError, scale_info::TypeInfo)]
pub struct Wrapper(bool);
fn main() {}
@@ -44,7 +44,7 @@ impl pezframe_system::Config for Runtime {
type BlockLength = ();
type DbWeight = ();
type Version = ();
type PezpalletInfo = PezpalletInfo;
type PalletInfo = PalletInfo;
type AccountData = ();
type OnNewAccount = ();
type OnKilledAccount = ();
@@ -1,5 +1,5 @@
error: The `pallet_doc` received an unsupported argument. Supported format: `pallet_doc("PATH")`
--> tests/pallet_ui/pallet_doc_arg_non_path.rs:20:1
error: The `pezpallet_doc` received an unsupported argument. Supported format: `pezpallet_doc("PATH")`
--> tests/pezpallet_ui/pezpallet_doc_arg_non_path.rs:20:1
|
20 | #[pallet_doc(X)]
20 | #[pezpallet_doc(X)]
| ^
@@ -1,5 +1,5 @@
error: The `pallet_doc` received an unsupported argument. Supported format: `pallet_doc("PATH")`
--> tests/pallet_ui/pallet_doc_empty.rs:20:1
error: The `pezpallet_doc` received an unsupported argument. Supported format: `pezpallet_doc("PATH")`
--> tests/pezpallet_ui/pezpallet_doc_empty.rs:20:1
|
20 | #[pallet_doc]
20 | #[pezpallet_doc]
| ^
@@ -1,5 +1,5 @@
error: The `pallet_doc` received an unsupported argument. Supported format: `pallet_doc("PATH")`
--> tests/pallet_ui/pallet_doc_invalid_arg.rs:20:1
error: The `pezpallet_doc` received an unsupported argument. Supported format: `pezpallet_doc("PATH")`
--> tests/pezpallet_ui/pezpallet_doc_invalid_arg.rs:20:1
|
20 | #[pallet_doc = "invalid"]
20 | #[pezpallet_doc = "invalid"]
| ^
@@ -1,5 +1,5 @@
error: The `pallet_doc` received an unsupported argument. Supported format: `pallet_doc("PATH")`
--> tests/pallet_ui/pallet_doc_multiple_args.rs:20:1
error: The `pezpallet_doc` received an unsupported argument. Supported format: `pezpallet_doc("PATH")`
--> tests/pezpallet_ui/pezpallet_doc_multiple_args.rs:20:1
|
20 | #[pallet_doc("A", "B")]
20 | #[pezpallet_doc("A", "B")]
| ^
@@ -1,5 +1,5 @@
error: Invalid pallet macro call: unexpected attribute. Macro call must be bare, such as `#[frame_support::pallet]` or `#[pallet]`, or must specify the `dev_mode` attribute, such as `#[frame_support::pallet(dev_mode)]` or #[pallet(dev_mode)].
--> tests/pallet_ui/pallet_invalid_arg.rs:18:25
error: Invalid pezpallet macro call: unexpected attribute. Macro call must be bare, such as `#[pezframe_support::pezpallet]` or `#[pezpallet]`, or must specify the `dev_mode` attribute, such as `#[pezframe_support::pezpallet(dev_mode)]` or #[pezpallet(dev_mode)].
--> tests/pezpallet_ui/pezpallet_invalid_arg.rs:18:31
|
18 | #[frame_support::pallet(foo)]
| ^^^
18 | #[pezframe_support::pezpallet(foo)]
| ^^^
@@ -1,5 +1,5 @@
error: expected `without_storage_info` or `storage_version`
--> tests/pallet_ui/pallet_struct_invalid_attr.rs:24:12
--> tests/pezpallet_ui/pezpallet_struct_invalid_attr.rs:24:15
|
24 | #[pallet::generate_storage_info] // invalid
| ^^^^^^^^^^^^^^^^^^^^^
24 | #[pezpallet::generate_storage_info] // invalid
| ^^^^^^^^^^^^^^^^^^^^^
@@ -1,13 +1,13 @@
error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:27:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:27:15
|
27 | #[pallet::without_storage_info]
| _______________^
28 | | pub struct Pallet<T>(core::marker::PhantomData<T>);
27 | #[pezpallet::without_storage_info]
| __________________^
28 | | pub struct Pezpallet<T>(core::marker::PhantomData<T>);
29 | |
30 | | #[pallet::hooks]
30 | | #[pezpallet::hooks]
... |
38 | | #[pallet::storage]
38 | | #[pezpallet::storage]
39 | | type Foo<T> = StorageValue<Value = Bar>;
| |____________^ the trait `WrapperTypeDecode` is not implemented for `Bar`
|
@@ -15,21 +15,21 @@ error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
frame_support::sp_runtime::sp_application_crypto::sp_core::Bytes
pezframe_support::pezsp_runtime::pezsp_application_crypto::pezsp_core::Bytes
= note: required for `Bar` to implement `Decode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:27:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:27:15
|
27 | #[pallet::without_storage_info]
| _______________^
28 | | pub struct Pallet<T>(core::marker::PhantomData<T>);
27 | #[pezpallet::without_storage_info]
| __________________^
28 | | pub struct Pezpallet<T>(core::marker::PhantomData<T>);
29 | |
30 | | #[pallet::hooks]
30 | | #[pezpallet::hooks]
... |
38 | | #[pallet::storage]
38 | | #[pezpallet::storage]
39 | | type Foo<T> = StorageValue<Value = Bar>;
| |____________^ the trait `EncodeLike` is not implemented for `Bar`
|
@@ -45,18 +45,18 @@ error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
and $N others
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:27:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:27:15
|
27 | #[pallet::without_storage_info]
| _______________^
28 | | pub struct Pallet<T>(core::marker::PhantomData<T>);
27 | #[pezpallet::without_storage_info]
| __________________^
28 | | pub struct Pezpallet<T>(core::marker::PhantomData<T>);
29 | |
30 | | #[pallet::hooks]
30 | | #[pezpallet::hooks]
... |
38 | | #[pallet::storage]
38 | | #[pezpallet::storage]
39 | | type Foo<T> = StorageValue<Value = Bar>;
| |____________^ the trait `WrapperTypeEncode` is not implemented for `Bar`
|
@@ -73,13 +73,13 @@ error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
= note: required for `Bar` to implement `Encode`
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
error[E0277]: the trait bound `Bar: TypeInfo` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<Value = Bar>;
| |____________^ the trait `TypeInfo` is not implemented for `Bar`
|
@@ -94,13 +94,13 @@ error[E0277]: the trait bound `Bar: TypeInfo` is not satisfied
(A, B, C, D, E, F)
and $N others
= note: required for `Bar` to implement `StaticTypeInfo`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<Value = Bar>;
| |____________^ the trait `WrapperTypeDecode` is not implemented for `Bar`
|
@@ -108,16 +108,16 @@ error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
frame_support::sp_runtime::sp_application_crypto::sp_core::Bytes
pezframe_support::pezsp_runtime::pezsp_application_crypto::pezsp_core::Bytes
= note: required for `Bar` to implement `Decode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<Value = Bar>;
| |____________^ the trait `EncodeLike` is not implemented for `Bar`
|
@@ -133,13 +133,13 @@ error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
and $N others
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<Value = Bar>;
| |____________^ the trait `WrapperTypeEncode` is not implemented for `Bar`
|
@@ -156,13 +156,13 @@ error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
= note: required for `Bar` to implement `Encode`
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<Value = Bar>;
| |____________^ the trait `WrapperTypeDecode` is not implemented for `Bar`
|
@@ -170,16 +170,16 @@ error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
frame_support::sp_runtime::sp_application_crypto::sp_core::Bytes
pezframe_support::pezsp_runtime::pezsp_application_crypto::pezsp_core::Bytes
= note: required for `Bar` to implement `Decode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<Value = Bar>;
| |____________^ the trait `EncodeLike` is not implemented for `Bar`
|
@@ -195,13 +195,13 @@ error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
and $N others
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<Value = Bar>;
| |____________^ the trait `WrapperTypeEncode` is not implemented for `Bar`
|
@@ -218,4 +218,4 @@ error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
= note: required for `Bar` to implement `Encode`
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
@@ -1,13 +1,13 @@
error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:27:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:27:15
|
27 | #[pallet::without_storage_info]
| _______________^
28 | | pub struct Pallet<T>(core::marker::PhantomData<T>);
27 | #[pezpallet::without_storage_info]
| __________________^
28 | | pub struct Pezpallet<T>(core::marker::PhantomData<T>);
29 | |
30 | | #[pallet::hooks]
30 | | #[pezpallet::hooks]
... |
38 | | #[pallet::storage]
38 | | #[pezpallet::storage]
39 | | type Foo<T> = StorageValue<_, Bar>;
| |____________^ the trait `WrapperTypeDecode` is not implemented for `Bar`
|
@@ -15,21 +15,21 @@ error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
frame_support::sp_runtime::sp_application_crypto::sp_core::Bytes
pezframe_support::pezsp_runtime::pezsp_application_crypto::pezsp_core::Bytes
= note: required for `Bar` to implement `Decode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:27:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:27:15
|
27 | #[pallet::without_storage_info]
| _______________^
28 | | pub struct Pallet<T>(core::marker::PhantomData<T>);
27 | #[pezpallet::without_storage_info]
| __________________^
28 | | pub struct Pezpallet<T>(core::marker::PhantomData<T>);
29 | |
30 | | #[pallet::hooks]
30 | | #[pezpallet::hooks]
... |
38 | | #[pallet::storage]
38 | | #[pezpallet::storage]
39 | | type Foo<T> = StorageValue<_, Bar>;
| |____________^ the trait `EncodeLike` is not implemented for `Bar`
|
@@ -45,18 +45,18 @@ error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
and $N others
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:27:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:27:15
|
27 | #[pallet::without_storage_info]
| _______________^
28 | | pub struct Pallet<T>(core::marker::PhantomData<T>);
27 | #[pezpallet::without_storage_info]
| __________________^
28 | | pub struct Pezpallet<T>(core::marker::PhantomData<T>);
29 | |
30 | | #[pallet::hooks]
30 | | #[pezpallet::hooks]
... |
38 | | #[pallet::storage]
38 | | #[pezpallet::storage]
39 | | type Foo<T> = StorageValue<_, Bar>;
| |____________^ the trait `WrapperTypeEncode` is not implemented for `Bar`
|
@@ -73,13 +73,13 @@ error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
= note: required for `Bar` to implement `Encode`
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `PartialStorageInfoTrait`
error[E0277]: the trait bound `Bar: TypeInfo` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<_, Bar>;
| |____________^ the trait `TypeInfo` is not implemented for `Bar`
|
@@ -94,13 +94,13 @@ error[E0277]: the trait bound `Bar: TypeInfo` is not satisfied
(A, B, C, D, E, F)
and $N others
= note: required for `Bar` to implement `StaticTypeInfo`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<_, Bar>;
| |____________^ the trait `WrapperTypeDecode` is not implemented for `Bar`
|
@@ -108,16 +108,16 @@ error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
frame_support::sp_runtime::sp_application_crypto::sp_core::Bytes
pezframe_support::pezsp_runtime::pezsp_application_crypto::pezsp_core::Bytes
= note: required for `Bar` to implement `Decode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<_, Bar>;
| |____________^ the trait `EncodeLike` is not implemented for `Bar`
|
@@ -133,13 +133,13 @@ error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
and $N others
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<_, Bar>;
| |____________^ the trait `WrapperTypeEncode` is not implemented for `Bar`
|
@@ -156,13 +156,13 @@ error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
= note: required for `Bar` to implement `Encode`
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageEntryMetadataBuilder`
error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<_, Bar>;
| |____________^ the trait `WrapperTypeDecode` is not implemented for `Bar`
|
@@ -170,16 +170,16 @@ error[E0277]: the trait bound `Bar: WrapperTypeDecode` is not satisfied
Arc<T>
Box<T>
Rc<T>
frame_support::sp_runtime::sp_application_crypto::sp_core::Bytes
pezframe_support::pezsp_runtime::pezsp_application_crypto::pezsp_core::Bytes
= note: required for `Bar` to implement `Decode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<_, Bar>;
| |____________^ the trait `EncodeLike` is not implemented for `Bar`
|
@@ -195,13 +195,13 @@ error[E0277]: the trait bound `Bar: EncodeLike` is not satisfied
and $N others
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
--> tests/pallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:12
--> tests/pezpallet_ui/storage_ensure_span_are_ok_on_wrong_gen_unnamed.rs:38:15
|
38 | #[pallet::storage]
| _______________^
38 | #[pezpallet::storage]
| __________________^
39 | | type Foo<T> = StorageValue<_, Bar>;
| |____________^ the trait `WrapperTypeEncode` is not implemented for `Bar`
|
@@ -218,4 +218,4 @@ error[E0277]: the trait bound `Bar: WrapperTypeEncode` is not satisfied
= note: required for `Bar` to implement `Encode`
= note: required for `Bar` to implement `FullEncode`
= note: required for `Bar` to implement `FullCodec`
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `TryDecodeEntireStorage`
@@ -1,13 +1,13 @@
error: free type alias without body
--> tests/pallet_ui/storage_incomplete_item.rs:36:2
--> tests/pezpallet_ui/storage_incomplete_item.rs:36:2
|
36 | type Foo;
| ^^^^^^^^-
| |
| help: provide a definition for the type: `= <type>;`
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `pallet`
--> tests/pallet_ui/storage_incomplete_item.rs:35:4
error[E0433]: failed to resolve: use of unresolved module or unlinked crate `pezpallet`
--> tests/pezpallet_ui/storage_incomplete_item.rs:35:4
|
35 | #[pallet::storage]
| ^^^^^^ use of unresolved module or unlinked crate `pallet`
35 | #[pezpallet::storage]
| ^^^^^^^^^ use of unresolved module or unlinked crate `pezpallet`
@@ -1,13 +1,13 @@
error[E0277]: the trait bound `Bar: MaxEncodedLen` is not satisfied
--> tests/pallet_ui/storage_info_unsatisfied.rs:26:12
--> tests/pezpallet_ui/storage_info_unsatisfied.rs:26:15
|
26 | #[pallet::pallet]
| _______________^
27 | | pub struct Pallet<T>(core::marker::PhantomData<T>);
26 | #[pezpallet::pezpallet]
| __________________^
27 | | pub struct Pezpallet<T>(core::marker::PhantomData<T>);
28 | |
29 | | #[pallet::hooks]
29 | | #[pezpallet::hooks]
... |
38 | | #[pallet::storage]
38 | | #[pezpallet::storage]
39 | | type Foo<T> = StorageValue<_, Bar>;
| |____________^ the trait `MaxEncodedLen` is not implemented for `Bar`
|
@@ -21,4 +21,4 @@ error[E0277]: the trait bound `Bar: MaxEncodedLen` is not satisfied
(TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)
(TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)
and $N others
= note: required for `frame_support::pallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageInfoTrait`
= note: required for `pezframe_support::pezpallet_prelude::StorageValue<_GeneratedPrefixForStorageFoo<T>, Bar>` to implement `StorageInfoTrait`
@@ -1,13 +1,13 @@
error[E0277]: the trait bound `Bar: MaxEncodedLen` is not satisfied
--> tests/pallet_ui/storage_info_unsatisfied_nmap.rs:29:12
--> tests/pezpallet_ui/storage_info_unsatisfied_nmap.rs:29:15
|
29 | #[pallet::pallet]
| _______________^
30 | | pub struct Pallet<T>(core::marker::PhantomData<T>);
29 | #[pezpallet::pezpallet]
| __________________^
30 | | pub struct Pezpallet<T>(core::marker::PhantomData<T>);
31 | |
32 | | #[pallet::hooks]
32 | | #[pezpallet::hooks]
... |
41 | | #[pallet::storage]
41 | | #[pezpallet::storage]
42 | | type Foo<T> = StorageNMap<_, Key<Twox64Concat, Bar>, u32>;
| |____________^ the trait `MaxEncodedLen` is not implemented for `Bar`
|
@@ -21,6 +21,6 @@ error[E0277]: the trait bound `Bar: MaxEncodedLen` is not satisfied
(TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6)
(TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4, TupleElement5, TupleElement6, TupleElement7)
and $N others
= note: required for `NMapKey<frame_support::Twox64Concat, Bar>` to implement `KeyGeneratorMaxEncodedLen`
= note: required for `NMapKey<pezframe_support::Twox64Concat, Bar>` to implement `KeyGeneratorMaxEncodedLen`
= note: required for `StorageNMap<_GeneratedPrefixForStorageFoo<T>, Key<..., ...>, u32>` to implement `StorageInfoTrait`
= note: consider using `--verbose` to print the full type name to the console
@@ -1,5 +1,5 @@
error: expected one of: `getter`, `storage_prefix`, `unbounded`, `whitelist_storage`, `disable_try_decode_storage`
--> tests/pallet_ui/storage_invalid_attribute.rs:33:12
--> tests/pezpallet_ui/storage_invalid_attribute.rs:33:15
|
33 | #[pallet::generate_store(pub trait Store)]
| ^^^^^^^^^^^^^^
33 | #[pezpallet::generate_store(pub trait Store)]
| ^^^^^^^^^^^^^^
@@ -1,11 +1,11 @@
error: Invalid pallet::storage, for unnamed generic arguments the type first generic argument must be `_`, the argument is then replaced by macro.
--> tests/pallet_ui/storage_invalid_first_generic.rs:36:29
error: Invalid pezpallet::storage, for unnamed generic arguments the type first generic argument must be `_`, the argument is then replaced by macro.
--> tests/pezpallet_ui/storage_invalid_first_generic.rs:36:29
|
36 | type Foo<T> = StorageValue<u8, u8>;
| ^^
error: expected `_`
--> tests/pallet_ui/storage_invalid_first_generic.rs:36:29
--> tests/pezpallet_ui/storage_invalid_first_generic.rs:36:29
|
36 | type Foo<T> = StorageValue<u8, u8>;
| ^^
@@ -1,5 +1,5 @@
error: `pub` is not a valid identifier
--> tests/pallet_ui/storage_invalid_rename_value.rs:30:29
--> tests/pezpallet_ui/storage_invalid_rename_value.rs:30:32
|
30 | #[pallet::storage_prefix = "pub"]
| ^^^^^
30 | #[pezpallet::storage_prefix = "pub"]
| ^^^^^
@@ -1,5 +1,5 @@
error: Invalid attribute: Duplicate attribute
--> tests/pallet_ui/storage_multiple_getters.rs:37:3
--> tests/pezpallet_ui/storage_multiple_getters.rs:37:3
|
37 | #[pallet::getter(fn foo_error)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 | #[pezpallet::getter(fn foo_error)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1,5 +1,5 @@
error: Invalid attribute: Duplicate attribute
--> tests/pallet_ui/storage_multiple_renames.rs:37:3
--> tests/pezpallet_ui/storage_multiple_renames.rs:37:3
|
37 | #[pallet::storage_prefix = "Baz"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 | #[pezpallet::storage_prefix = "Baz"]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1,5 +1,5 @@
error: Invalid pallet::storage, expected ident: `StorageValue` or `StorageMap` or `CountedStorageMap` or `StorageDoubleMap` or `StorageNMap` or `CountedStorageNMap` in order to expand metadata, found `u8`.
--> tests/pallet_ui/storage_not_storage_type.rs:36:16
error: Invalid pezpallet::storage, expected ident: `StorageValue` or `StorageMap` or `CountedStorageMap` or `StorageDoubleMap` or `StorageNMap` or `CountedStorageNMap` in order to expand metadata, found `u8`.
--> tests/pezpallet_ui/storage_not_storage_type.rs:36:16
|
36 | type Foo<T> = u8;
| ^^
@@ -1,11 +1,11 @@
error[E0107]: missing generics for enum `pallet::Error`
--> tests/pallet_ui/storage_result_query_missing_generics.rs:35:56
error[E0107]: missing generics for enum `pezpallet::Error`
--> tests/pezpallet_ui/storage_result_query_missing_generics.rs:35:56
|
35 | type Foo<T: Config> = StorageValue<_, u8, ResultQuery<Error::NonExistentValue>>;
| ^^^^^ expected 1 generic argument
|
note: enum defined here, with 1 generic parameter: `T`
--> tests/pallet_ui/storage_result_query_missing_generics.rs:30:11
--> tests/pezpallet_ui/storage_result_query_missing_generics.rs:30:11
|
30 | pub enum Error<T> {
| ^^^^^ -

Some files were not shown because too many files have changed in this diff Show More