Fix typo in cache_directory

This commit is contained in:
Luke Van Seters 2021-07-11 12:06:23 -04:00
parent 1d3e2cc000
commit e67922b5e6

View File

@ -2,7 +2,7 @@ from web3 import Web3
from pathlib import Path from pathlib import Path
import json import json
cache_directoty = './cache' cache_directory = './cache'
class BlockData: class BlockData:
def __init__(self, block_number, data, receipts, calls, logs, txs_gas_data) -> None: def __init__(self, block_number, data, receipts, calls, logs, txs_gas_data) -> None:
@ -13,7 +13,6 @@ class BlockData:
self.logs = logs self.logs = logs
self.transaction_hashes = self.get_transaction_hashes() self.transaction_hashes = self.get_transaction_hashes()
self.txs_gas_data = txs_gas_data self.txs_gas_data = txs_gas_data
pass
## Gets a list of unique transasction hashes in the calls of this block ## Gets a list of unique transasction hashes in the calls of this block
def get_transaction_hashes(self): def get_transaction_hashes(self):
@ -108,4 +107,4 @@ def createFromBlockNumber(block_number, base_provider):
## Write the result to a JSON file for loading in the future ## Write the result to a JSON file for loading in the future
block.writeJSON() block.writeJSON()
return block return block