Fix broken pallet_shards benchmarks #132
Annotations
10 errors
pallets/shards/src/benchmarking.rs#L81
error[E0308]: mismatched types
--> pallets/shards/src/benchmarking.rs:81:26
|
81 | let alice: AccountId = ALICE;
| --------- ^^^^^ expected `AccountId32`, found `[u8; 32]`
| |
| expected due to this
|
help: call `Into::into` on this expression to convert `[u8; 32]` into `AccountId32`
|
81 | let alice: AccountId = ALICE.into();
| +++++++
|
pallets/shards/src/benchmarking.rs#L81
error[E0308]: mismatched types
--> pallets/shards/src/benchmarking.rs:81:26
|
81 | let alice: AccountId = ALICE;
| --------- ^^^^^ expected `AccountId32`, found `[u8; 32]`
| |
| expected due to this
|
help: call `Into::into` on this expression to convert `[u8; 32]` into `AccountId32`
|
81 | let alice: AccountId = ALICE.into();
| +++++++
|
pallets/shards/src/lib.rs#L495
error[E0221]: ambiguous associated type `WeightInfo` in bounds of `T`
--> pallets/shards/src/lib.rs:495:4
|
124 | type WeightInfo: WeightInfo;
| --------------------------- ambiguous `WeightInfo` from `pallet::Config`
...
495 | T::WeightInfo::member_offline()
| ^^^^^^^^^^^^^ ambiguous associated type `WeightInfo`
|
= note: associated type `WeightInfo` could derive from `pallet_balances::Config`
help: use fully-qualified syntax to disambiguate
|
495 | <T as pallet::Config>::WeightInfo::member_offline()
| ~~~~~~~~~~~~~~~~~~~~~~~
|
pallets/shards/src/lib.rs#L124
error[E0221]: ambiguous associated type `WeightInfo` in bounds of `T`
--> pallets/shards/src/lib.rs:495:4
|
124 | type WeightInfo: WeightInfo;
| --------------------------- ambiguous `WeightInfo` from `pallet::Config`
...
495 | T::WeightInfo::member_offline()
| ^^^^^^^^^^^^^ ambiguous associated type `WeightInfo`
|
= note: associated type `WeightInfo` could derive from `pallet_balances::Config`
help: use fully-qualified syntax to disambiguate
|
495 | <T as pallet::Config>::WeightInfo::member_offline()
| ~~~~~~~~~~~~~~~~~~~~~~~
|
pallets/shards/src/lib.rs#L495
error[E0599]: no function or associated item named `member_offline` found for associated type `<T as pallet_balances::Config>::WeightInfo` in the current scope
--> pallets/shards/src/lib.rs:495:19
|
495 | T::WeightInfo::member_offline()
| ^^^^^^^^^^^^^^ function or associated item not found in `<T as Config>::WeightInfo`
|
= help: items from traits can only be used if the trait is implemented and in scope
note: `pallet::WeightInfo` defines an item `member_offline`, perhaps you need to implement it
--> pallets/shards/src/lib.rs:90:2
|
90 | pub trait WeightInfo {
| ^^^^^^^^^^^^^^^^^^^^
|
pallets/shards/src/lib.rs#L233
error[E0221]: ambiguous associated type `WeightInfo` in bounds of `T`
--> pallets/shards/src/lib.rs:233:20
|
124 | type WeightInfo: WeightInfo;
| --------------------------- ambiguous `WeightInfo` from `pallet::Config`
...
233 | #[pallet::weight(T::WeightInfo::commit())]
| ^^^^^^^^^^^^^ ambiguous associated type `WeightInfo`
|
= note: associated type `WeightInfo` could derive from `pallet_balances::Config`
help: use fully-qualified syntax to disambiguate
|
233 | #[pallet::weight(<T as pallet::Config>::WeightInfo::commit())]
| ~~~~~~~~~~~~~~~~~~~~~~~
|
pallets/shards/src/lib.rs#L124
error[E0221]: ambiguous associated type `WeightInfo` in bounds of `T`
--> pallets/shards/src/lib.rs:233:20
|
124 | type WeightInfo: WeightInfo;
| --------------------------- ambiguous `WeightInfo` from `pallet::Config`
...
233 | #[pallet::weight(T::WeightInfo::commit())]
| ^^^^^^^^^^^^^ ambiguous associated type `WeightInfo`
|
= note: associated type `WeightInfo` could derive from `pallet_balances::Config`
help: use fully-qualified syntax to disambiguate
|
233 | #[pallet::weight(<T as pallet::Config>::WeightInfo::commit())]
| ~~~~~~~~~~~~~~~~~~~~~~~
|
pallets/shards/src/lib.rs#L233
error[E0599]: no function or associated item named `commit` found for associated type `<T as pallet_balances::Config>::WeightInfo` in the current scope
--> pallets/shards/src/lib.rs:233:35
|
233 | #[pallet::weight(T::WeightInfo::commit())]
| ^^^^^^ function or associated item not found in `<T as Config>::WeightInfo`
|
= help: items from traits can only be used if the trait is implemented and in scope
note: `pallet::WeightInfo` defines an item `commit`, perhaps you need to implement it
--> pallets/shards/src/lib.rs:90:2
|
90 | pub trait WeightInfo {
| ^^^^^^^^^^^^^^^^^^^^
|
pallets/shards/src/lib.rs#L295
error[E0221]: ambiguous associated type `WeightInfo` in bounds of `T`
--> pallets/shards/src/lib.rs:295:20
|
124 | type WeightInfo: WeightInfo;
| --------------------------- ambiguous `WeightInfo` from `pallet::Config`
...
295 | #[pallet::weight(T::WeightInfo::ready())]
| ^^^^^^^^^^^^^ ambiguous associated type `WeightInfo`
|
= note: associated type `WeightInfo` could derive from `pallet_balances::Config`
help: use fully-qualified syntax to disambiguate
|
295 | #[pallet::weight(<T as pallet::Config>::WeightInfo::ready())]
| ~~~~~~~~~~~~~~~~~~~~~~~
|
pallets/shards/src/lib.rs#L124
error[E0221]: ambiguous associated type `WeightInfo` in bounds of `T`
--> pallets/shards/src/lib.rs:295:20
|
124 | type WeightInfo: WeightInfo;
| --------------------------- ambiguous `WeightInfo` from `pallet::Config`
...
295 | #[pallet::weight(T::WeightInfo::ready())]
| ^^^^^^^^^^^^^ ambiguous associated type `WeightInfo`
|
= note: associated type `WeightInfo` could derive from `pallet_balances::Config`
help: use fully-qualified syntax to disambiguate
|
295 | #[pallet::weight(<T as pallet::Config>::WeightInfo::ready())]
| ~~~~~~~~~~~~~~~~~~~~~~~
|
The logs for this run have expired and are no longer available.
Loading