Skip to content

Commit 03908e3

Browse files
committed
fixes
1 parent badae21 commit 03908e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pallets/subtensor/src/macros/events.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ mod events {
473473
/// (coldkey, u8)
474474
DelegateClaimTypeSet {
475475
/// delegate hotkey
476-
hotkeu: T::AccountId,
476+
hotkey: T::AccountId,
477477
root_claim_type: RootClaimTypeEnum,
478478
},
479479

pallets/subtensor/src/staking/claim_root.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ impl<T: Config> Pallet<T> {
158158
}
159159

160160
// If root_claim_type is Delegated, switch to the delegate's actual claim type.
161-
if let RootClaimTypeEnum::Delegated = root_claim_type {
161+
if (root_claim_type == RootClaimTypeEnum::Delegated) {
162162
root_claim_type = DelegateClaimType::<T>::get(hotkey, netuid);
163163
}
164164

0 commit comments

Comments
 (0)