fix #1169
Annotations
1 error and 1 warning
`match` arms have incompatible types:
pallets/dapp-staking-v3/src/lib.rs#L1919
error[E0308]: `match` arms have incompatible types
--> pallets/dapp-staking-v3/src/lib.rs:1919:50
|
1912 | let (dapp_tier_rewards, counter, rank_rewards) = match tier_assignment {
| --------------------- `match` arms have incompatible types
1913 | TierAssignment::Real => Self::get_dapp_tier_assignment_and_rewards(
| _________________________________________________-
1914 | | current_era,
1915 | | protocol_state.period_number(),
1916 | | dapp_reward_pool,
1917 | | ),
| |_________________________- this is found to be of type `(types::DAppTierRewards<<T as pallet::Config>::MaxNumberOfContracts, <T as pallet::Config>::NumberOfTiers>, u16, frame_support::BoundedVec<u128, <T as pallet::Config>::NumberOfTiers>)`
1918 | #[cfg(feature = "runtime-benchmarks")]
1919 | TierAssignment::Dummy => (DAppTierRewardsFor::<T>::default(), 0),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected a tuple with 3 elements, found one with 2 elements
|
= note: expected tuple `(DAppTierRewards<<T as Config>::MaxNumberOfContracts, <T as Config>::NumberOfTiers>, u16, ...)`
found tuple `(types::DAppTierRewards<<T as pallet::Config>::MaxNumberOfContracts, <T as pallet::Config>::NumberOfTiers>, {integer})`
|
test-runtimes
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|