We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent badae21 commit 03908e3Copy full SHA for 03908e3
pallets/subtensor/src/macros/events.rs
@@ -473,7 +473,7 @@ mod events {
473
/// (coldkey, u8)
474
DelegateClaimTypeSet {
475
/// delegate hotkey
476
- hotkeu: T::AccountId,
+ hotkey: T::AccountId,
477
root_claim_type: RootClaimTypeEnum,
478
},
479
pallets/subtensor/src/staking/claim_root.rs
@@ -158,7 +158,7 @@ impl<T: Config> Pallet<T> {
158
}
159
160
// If root_claim_type is Delegated, switch to the delegate's actual claim type.
161
- if let RootClaimTypeEnum::Delegated = root_claim_type {
+ if (root_claim_type == RootClaimTypeEnum::Delegated) {
162
root_claim_type = DelegateClaimType::<T>::get(hotkey, netuid);
163
164
0 commit comments