Skip to content

Commit

Permalink
Add 0x prefix to the bytes type fields of the output JSON file
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Jan 15, 2023
1 parent d68a1c7 commit 42cd2ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion staking_deposit/credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 42cd2ce

Please sign in to comment.