Assessment reports>ZetaChain>Threat Model>Message: UpdateContractBytecode

Message: UpdateContractBytecode

The UpdateContractBytecode message handler is used to update the bytecode of a contract. Only policy type 2 admin accounts are able to call this handler (i.e., a multi-sig).

The bytecode is sourced from an existing contract deployed on the chain. There are checks to ensure that the addresses exist.

Then, a check is enacted to ensure that the contract being updated is a delpoyed ZRC-20 or is the wzeta connect contract.

Zellic © 2024Back to top ↑