Example #1
0
def update_sc(nef_file: bytes, manifest: bytes, data: Any = None):
    """
    Updates the smart contract. In this example there is a bugged method, so, the smart contract will be updated to fix
    the bug.
    """
    if check_witness(OWNER):
        ContractManagement.update(nef_file, manifest, data)
def Main(script: bytes, manifest: str, data: Any, arg0: Any):
    ContractManagement.update(script, manifest, data, arg0)
Example #3
0
def update(script: bytes, manifest: bytes, data: Any):
    ContractManagement.update(script, manifest, data)
Example #4
0
def Main(script: bytes):
    ContractManagement.update(script)