Slightly better implementation for block path
This commit is contained in:
parent
7d51dd3442
commit
5e9c350b38
4
block.py
4
block.py
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user