From 1944dc14c3cebfcc6dfe06626b72d9356c1a046b Mon Sep 17 00:00:00 2001 From: YZX0 Date: Sat, 27 Dec 2025 14:50:26 +0100 Subject: [PATCH] Fix: Issue #590 - Enable ProxyType::Cancel --- common/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/src/lib.rs b/common/src/lib.rs index 658f8b2e01..0c19c0e78b 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -160,6 +160,7 @@ pub enum ProxyType { SwapHotkey, SubnetLeaseBeneficiary, // Used to operate the leased subnet RootClaim, + Cancel, } impl TryFrom for ProxyType { @@ -185,6 +186,7 @@ impl TryFrom for ProxyType { 15 => Ok(Self::SwapHotkey), 16 => Ok(Self::SubnetLeaseBeneficiary), 17 => Ok(Self::RootClaim), + 18 => Ok(Self::Cancel), _ => Err(()), } } @@ -211,6 +213,7 @@ impl From for u8 { ProxyType::SwapHotkey => 15, ProxyType::SubnetLeaseBeneficiary => 16, ProxyType::RootClaim => 17, + ProxyType::Cancel => 18, } } }