diff --git a/eth_portfolio/_ledgers/address.py b/eth_portfolio/_ledgers/address.py index 6a190028..c8f9856c 100644 --- a/eth_portfolio/_ledgers/address.py +++ b/eth_portfolio/_ledgers/address.py @@ -691,6 +691,12 @@ async def _load_new_objects( await e.load_remaining() return + # TODO: figure out where this float comes from and raise a TypeError there + if isinstance(start_block, float) and int(start_block) == start_block: + start_block = int(start_block) + if isinstance(end_block, float) and int(end_block) == end_block: + end_block = int(end_block) + block_ranges = [ [hex(i), hex(i + BATCH_SIZE - 1)] for i in range(start_block, end_block, BATCH_SIZE) ]