Slightly better implementation for block path

This commit is contained in:
Luke Van Seters 2021-07-12 09:55:11 -04:00
parent 7d51dd3442
commit 5e9c350b38

View File

@ -99,5 +99,5 @@ def createFromBlockNumber(block_number: int, base_provider) -> Block:
def _get_cache_path(block_number: int) -> Path: def _get_cache_path(block_number: int) -> Path:
cache_filepath = f"{cache_directory}/{block_number}-new.json" cache_directory_path = Path(cache_directory)
return Path(cache_filepath) return cache_directory_path / f"{block_number}-new.json"