Skip to content

Fix broken pallet_shards benchmarks #132

Fix broken pallet_shards benchmarks

Fix broken pallet_shards benchmarks #132

Triggered via pull request July 19, 2024 21:46
Status Failure
Total duration 14m 58s
Artifacts

pr-test-cargo.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
test-cargo: 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(); | +++++++
test-cargo: 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(); | +++++++
test-cargo: 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() | ~~~~~~~~~~~~~~~~~~~~~~~
test-cargo: 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() | ~~~~~~~~~~~~~~~~~~~~~~~
test-cargo: 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 { | ^^^^^^^^^^^^^^^^^^^^
test-cargo: 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())] | ~~~~~~~~~~~~~~~~~~~~~~~
test-cargo: 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())] | ~~~~~~~~~~~~~~~~~~~~~~~
test-cargo: 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 { | ^^^^^^^^^^^^^^^^^^^^
test-cargo: 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())] | ~~~~~~~~~~~~~~~~~~~~~~~
test-cargo: 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())] | ~~~~~~~~~~~~~~~~~~~~~~~