From db6059648dd031ba9b4b31c0d405692b2487120a Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Thu, 2 May 2019 19:55:32 +0800 Subject: [PATCH] Update block __repr__ --- eth2/beacon/types/block_headers.py | 9 +++++---- eth2/beacon/types/blocks.py | 7 ++++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/eth2/beacon/types/block_headers.py b/eth2/beacon/types/block_headers.py index 1759d71b0a..387fffab2a 100644 --- a/eth2/beacon/types/block_headers.py +++ b/eth2/beacon/types/block_headers.py @@ -53,7 +53,8 @@ def __init__(self, ) def __repr__(self) -> str: - return ''.format( - self.slot, - encode_hex(self.signing_root)[2:10], - ) + return ( + f'' + ) \ No newline at end of file diff --git a/eth2/beacon/types/blocks.py b/eth2/beacon/types/blocks.py index 15482306bb..5cf057dcdf 100644 --- a/eth2/beacon/types/blocks.py +++ b/eth2/beacon/types/blocks.py @@ -160,9 +160,10 @@ def __init__(self, ) def __repr__(self) -> str: - return ''.format( - self.slot, - encode_hex(self.signing_root)[2:10], + return ( + f'' ) @property