From 42cd2ce388069516ad0d86536beedb5d7f1e6c8a Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Mon, 16 Jan 2023 01:37:16 +0800 Subject: [PATCH] Add `0x` prefix to the bytes type fields of the output JSON file --- staking_deposit/credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staking_deposit/credentials.py b/staking_deposit/credentials.py index 534238534..85a041a85 100644 --- a/staking_deposit/credentials.py +++ b/staking_deposit/credentials.py @@ -259,7 +259,7 @@ def export_bls_to_execution_change_json(self, folder: str, validator_index: int) filefolder = os.path.join(folder, 'bls_to_execution_change-%i.json' % time.time()) with open(filefolder, 'w') as f: - json.dump(bls_to_execution_changes, f, default=lambda x: x.hex()) + json.dump(bls_to_execution_changes, f) if os.name == 'posix': os.chmod(filefolder, int('440', 8)) # Read for owner & group return filefolder