[][src]Function casperlabs_contract::contract_api::runtime::upgrade_contract_at_uref

pub fn upgrade_contract_at_uref(name: &str, uref: URef)

Takes the name of a (non-mangled) extern "C" function to store as a contract under the given URef which should already reference a stored contract.

If successful, this overwrites the value under uref with a new contract instance containing the original contract's named_keys, the current protocol version, and the newly created bytes of the stored function.