Function setBytecodeOf

  • Sets the executable bytecode of the given address.

    Remarks

    The maximum bytecode size is 10MB.

    TODO: explains security mechanisms. See related issue

    Throws

    • if the address does not correspond to a smart contract in the ledger.
    • if the address does not exist
    • if the caller lacks write permissions on the address.
    • if the bytecode size exceeds maximum allowed size

    Parameters

    • address: Address

      The target address whose bytecode will be set. It should be of type Address.

    • bytecode: StaticArray<number>

      The bytecode to be set for the address. It should be a StaticArray<u8>.

    Returns void

Generated using TypeDoc