fn remove_key_from_contract(
        &mut self,
        key: Key,
        mut contract: Contract,
        name: &str,
    ) -> Result<(), Error> {
        if contract.remove_named_key(name).is_none() {
            return Ok(());
        }
        self.metered_write_gs_unsafe(key, contract)?;
        Ok(())
    }
/// Helper function to avoid duplication in `remove_uref`.
Helper function to avoid duplication in `remove_uref`.
Helper function to avoid duplication in ` remove_uref ` .
fn remove_key_from_contract(
        &mut self,
        key: Key,
        mut contract: Contract,
        name: &str,
    ) -> Result<(), Error> {
        if contract.remove_named_key(name).is_none() {
            return Ok(());
        }
        self.metered_write_gs_unsafe(key, contract)?;
        Ok(())
    }
fn remove_key_from_contract ( & mut self , key : Key , mut contract : Contract , name : & str , ) -> Result < ( ) , Error > { if contract . remove_named_key ( name ) . is_none ( ) { return Ok ( ( ) ) ; } self . metered_write_gs_unsafe ( key , contract ) ? ; Ok ( ( ) ) }
Helper function to avoid duplication in `remove_uref`.
Helper function to avoid duplication in ` remove_uref ` .
&mut self
key
Key
contract
Contract
name
&str
&mut self
key
Key
contract
Contract
name
&str