Update external_dvm_utils.py

This commit is contained in:
Believethehype 2024-11-04 08:33:08 +01:00
parent 5eee4424c2
commit 74c5953f01

View File

@ -25,8 +25,9 @@ async def build_client(config):
def build_external_dvm(pubkey, task, kind, fix_cost, per_unit_cost, config,
external_post_process=PostProcessFunctionType.NONE):
pubkey = PublicKey.from_hex(pubkey).to_hex()
dvm_config = DVMConfig()
dvm_config.PUBLIC_KEY = PublicKey.from_hex(pubkey).to_hex()
dvm_config.PUBLIC_KEY = pubkey
dvm_config.FIX_COST = fix_cost
dvm_config.PER_UNIT_COST = per_unit_cost
dvm_config.EXTERNAL_POST_PROCESS_TYPE = external_post_process