pub fn remove_associated_key(
        &mut self,
        account_hash: AccountHash,
    ) -> Result<(), RemoveKeyFailure> {
        if self.associated_keys.contains_key(&account_hash) {
            // Check if removing this weight would fall below thresholds
            if !self.can_remove_key(account_hash) {
                return Err(RemoveKeyFailure::ThresholdViolation);
            }
        }
        self.associated_keys.remove_key(&account_hash)
    }
/// Removes an associated key from an account.
///
/// Verifies that removing the key will not cause the remaining weight to fall below any action
/// thresholds.
Removes an associated key from an account.
Verifies that removing the key will not cause the remaining weight to fall below any action
thresholds.
Removes an associated key from an account . Verifies that removing the key will not cause the remaining weight to fall below any action thresholds .
pub fn remove_associated_key(
        &mut self,
        account_hash: AccountHash,
    ) -> Result<(), RemoveKeyFailure> {
        if self.associated_keys.contains_key(&account_hash) {
            // Check if removing this weight would fall below thresholds
            if !self.can_remove_key(account_hash) {
                return Err(RemoveKeyFailure::ThresholdViolation);
            }
        }
        self.associated_keys.remove_key(&account_hash)
    }
pub fn remove_associated_key ( & mut self , account_hash : AccountHash , ) -> Result < ( ) , RemoveKeyFailure > { if self . associated_keys . contains_key ( & account_hash ) { // Check if removing this weight would fall below thresholds if ! self . can_remove_key ( account_hash ) { return Err ( RemoveKeyFailure :: ThresholdViolation ) ; } } self . associated_keys . remove_key ( & account_hash ) }
Removes an associated key from an account.
Removes an associated key from an account .
&mut self
account_hash
AccountHash
&mut self
account_hash
AccountHash