replace_bytecode

fn replace_bytecode(contract: ContractAddress, new_class: ClassHash)

Replaces class for given contract address. The new_class hash has to be declared in order for the replacement class to execute the code when interacting with the contract.