diff --git a/tests/integration/snapshots/snap_test_snapshots.py b/tests/integration/snapshots/snap_test_snapshots.py index f08b20c..70d77e4 100644 --- a/tests/integration/snapshots/snap_test_snapshots.py +++ b/tests/integration/snapshots/snap_test_snapshots.py @@ -9,8 +9,8 @@ snapshots["test_tod_attack_miner_e2e first_candidate"] = { "block_dist": 0, - "tx_access_hash": "0xcfb5968f11b15c15cfb23234dc56f16c5811485a6cae702195317a2f86ce2c6c", - "tx_write_hash": "0x001811be6d2019216746d9c9da9f847160dc18a9d6dba362d4b265c2dd7e649a", + "tx_a": "0x001811be6d2019216746d9c9da9f847160dc18a9d6dba362d4b265c2dd7e649a", + "tx_b": "0xcfb5968f11b15c15cfb23234dc56f16c5811485a6cae702195317a2f86ce2c6c", "types": ["balance"], } diff --git a/tod_attack_miner/db/db.py b/tod_attack_miner/db/db.py index f8cb744..46a4ca8 100644 --- a/tod_attack_miner/db/db.py +++ b/tod_attack_miner/db/db.py @@ -31,8 +31,8 @@ class Candidate(TypedDict): - tx_write_hash: str - tx_access_hash: str + tx_a: str + tx_b: str block_dist: int types: Sequence[ACCESS_TYPE] @@ -399,8 +399,8 @@ def get_candidates(self) -> Sequence[Candidate]: return [ { - "tx_write_hash": tx_a, - "tx_access_hash": tx_b, + "tx_a": tx_a, + "tx_b": tx_b, "block_dist": block_dist, "types": cast(Sequence[ACCESS_TYPE], types.split("|")), }