Skip to content

Commit 0e9f293

Browse files
authored
Merge pull request #1756 from opentensor/feat/add-swap-hk-proxy
Feat/add swap hk proxy
2 parents f892a9c + d7117b6 commit 0e9f293

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

common/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ pub enum ProxyType {
5050
RootWeights,
5151
ChildKeys,
5252
SudoUncheckedSetCode,
53+
SwapHotkey,
5354
}
5455

5556
impl Default for ProxyType {

runtime/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
209209
// `spec_version`, and `authoring_version` are the same between Wasm and native.
210210
// This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use
211211
// the compatible custom types.
212-
spec_version: 275,
212+
spec_version: 276,
213213
impl_version: 1,
214214
apis: RUNTIME_API_VERSIONS,
215215
transaction_version: 1,
@@ -829,6 +829,10 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
829829
}
830830
_ => false,
831831
},
832+
ProxyType::SwapHotkey => matches!(
833+
c,
834+
RuntimeCall::SubtensorModule(pallet_subtensor::Call::swap_hotkey { .. })
835+
),
832836
}
833837
}
834838
fn is_superset(&self, o: &Self) -> bool {

0 commit comments

Comments
 (0)