示例#1
0
def update(script: bytes, manifest: bytes):
    """
    Upgrade the contract.

    :param script: the contract script
    :type script: bytes
    :param manifest: the contract manifest
    :type manifest: bytes
    :raise AssertionError: raised if witness is not verified
    """
    assert verify(), '`acccount` is not allowed for update'
    update_contract(script, manifest)
    debug(['update called and done'])
示例#2
0
def update(script: bytes, manifest: bytes):
    update_contract(script, manifest)
def Main(script: bytes, manifest: str, arg0: Any):
    update_contract(script, manifest, arg0)
示例#4
0
def update(script: bytes, manifest: bytes):
    owner = UInt160(get(OWNER_KEY))
    if not check_witness(owner):
        raise Exception('No authorization.')

    update_contract(script, manifest)
def Main(script: bytes):
    update_contract(script)
示例#6
0
def update(script: bytes, manifest: bytes, data: Any):
    update_contract(script, manifest, data)