You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
--- stderr
Compiling pallet-relay_schedule v1.0.0(/Users/ramsey/decentration/parachain/pallets/relay_schedule)
warning:use of deprecated struct `pallet::warnings::schedule`:Implicit call indices are deprecated in favour of explicit ones.Please ensure that all calls have the `pallet::call_index` attribute or that the
`dev-mode` of the pallet is enabled.For more info see:
<https://github.com/paritytech/substrate/pull/12891> and
<https://github.com/paritytech/substrate/pull/11381>.
--> /Users/ramsey/decentration/parachain/pallets/relay_schedule/src/lib.rs:106:10
|
106 | pub fn schedule(origin:OriginFor<T>, call:Box<<TasConfig>::Call>) -> DispatchResult{
| ^^^^^^^^
|
= note: `#[warn(deprecated)]` on by default
warning:use of deprecated struct `pallet::warnings::set_at_block_number`:Implicit call indices are deprecated in favour of explicit ones.Please ensure that all calls have the `pallet::call_index` attribute or that the
`dev-mode` of the pallet is enabled.For more info see:
<https://github.com/paritytech/substrate/pull/12891> and
<https://github.com/paritytech/substrate/pull/11381>.
--> /Users/ramsey/decentration/parachain/pallets/relay_schedule/src/lib.rs:124:10
|
124 | pub fn set_at_block_number(origin:OriginFor<T>, block:u32) -> DispatchResult{
| ^^^^^^^^^^^^^^^^^^^
error[E0308]: mismatched types
--> /Users/ramsey/decentration/parachain/pallets/relay_schedule/src/lib.rs:62:29
|
62 | let mut weight:Weight = 0;
| ------ ^ expected `Weight`, found integer
| |
| expected due to this
error[E0369]: binary operation `>=` cannot be applied to type `frame_support::dispatch::Weight`
--> /Users/ramsey/decentration/parachain/pallets/relay_schedule/src/lib.rs:87:18
|
87 | ... if weight >= T::MaxBlockWeight::get() / 100{
| ------ ^^ ------------------------------ frame_support::dispatch::Weight
| |
| frame_support::dispatch::Weight
error[E0277]: cannot add `frame_support::dispatch::Weight` to `{integer}`
--> /Users/ramsey/decentration/parachain/pallets/relay_schedule/src/lib.rs:105:27
|
105 | #[pallet::weight(10_000 + T::DbWeight::get().writes(1))]
| ^ no implementation for `{integer} + frame_support::dispatch::Weight`
|
= help: the trait `Add<frame_support::dispatch::Weight>` is not implemented for `{integer}`
= help: the following other types implement trait `Add<Rhs>`:
<&'a f32 asAdd<f32>>
<&'a f64asAdd<f64>>
<&'a i128asAdd<i128>>
<&'a i16asAdd<i16>>
<&'a i32asAdd<i32>>
<&'a i64asAdd<i64>>
<&'a i8asAdd<i8>>
<&'a isizeasAdd<isize>>
and 48 others
Some errors have detailed explanations:E0277,E0308,E0369.For more information about an error, try `rustc --explain E0277`.warning: `pallet-relay_schedule` (lib) generated 2 warnings
error: could not compile `pallet-relay_schedule` due to 3 previous errors;2 warnings emitted
git checkout kab-release-v0.2.6
mostly for
pallet/relay_schedule
breaking changes related to handling of weights
Here is the Weights docs
The text was updated successfully, but these errors were encountered: