changed ordering of the specs to prefer contract level classification

This commit is contained in:
Patrick Daly 2021-08-13 13:30:39 -07:00
parent 0748a5f988
commit 4e4427b059
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ def fetch_block(w3, base_provider, block_number: int) -> Block:
## Get gas used by individual txs and store them too
txs_gas_data: Dict[str, Dict[str, Any]] = {}
"""
for transaction in block_data["transactions"]:
tx_hash = (transaction.hash).hex()
tx_data = w3.eth.get_transaction(tx_hash)
@ -63,7 +63,7 @@ def fetch_block(w3, base_provider, block_number: int) -> Block:
"gasPrice": tx_data["gasPrice"],
"netFeePaid": tx_data["gasPrice"] * tx_receipt["gasUsed"],
}
"""
transaction_hashes = get_transaction_hashes(traces)
## Create a new object

View File

@ -1,4 +1,4 @@
from .uniswap import UNISWAP_CLASSIFIER_SPECS
from .curve import CURVE_CLASSIFIER_SPECS
ALL_CLASSIFIER_SPECS = UNISWAP_CLASSIFIER_SPECS + CURVE_CLASSIFIER_SPECS
ALL_CLASSIFIER_SPECS = CURVE_CLASSIFIER_SPECS + UNISWAP_CLASSIFIER_SPECS