From 74c5953f01bc4965b9d967f1f611d8eb403814ce Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Mon, 4 Nov 2024 08:33:08 +0100 Subject: [PATCH] Update external_dvm_utils.py --- nostr_dvm/utils/external_dvm_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nostr_dvm/utils/external_dvm_utils.py b/nostr_dvm/utils/external_dvm_utils.py index 035a5ca..0d30baf 100644 --- a/nostr_dvm/utils/external_dvm_utils.py +++ b/nostr_dvm/utils/external_dvm_utils.py @@ -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