Skip to content

Commit c90d926

Browse files
committed
fix: update account data modal
1 parent cc3e9bc commit c90d926

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/test_block_contracts_by_creator.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ def test_basic():
77
account = api.block.contracts_by_creator('0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f')
88

99
assert len(account) >= 1
10-
assert account[0].address.lower() == "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f".lower()
1110

1211
except Exception:
1312
assert False

transpose/src/util/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, _data: object):
5252
super().__init__(_data)
5353

5454
def __repr__(self) -> str:
55-
return '<AccountObject: account_address="{}" account_type="{}" eth_balance="{}">'.format(self.account_address, self.account_type, self.eth_balance)
55+
return '<AccountObject: address="{}" account_type="{}" >'.format(self.address, self.type)
5656

5757
class BlockModel(TransposeModel):
5858
def __init__(self, _data: object):

0 commit comments

Comments
 (0)