Skip to content

Commit

Permalink
refactor: rename output fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Otto-AA committed Jul 27, 2024
1 parent 6e9f9fc commit 26e2e67
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/integration/snapshots/snap_test_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
}

Expand Down
8 changes: 4 additions & 4 deletions tod_attack_miner/db/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down Expand Up @@ -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("|")),
}
Expand Down

0 comments on commit 26e2e67

Please sign in to comment.