Commit ba49d1b
authored
Fix MEV Blocker kickbacks test (#124)
@fhenneke observed that high MEV Blocker refund alerts were missing. Had
a look and it turns out that a topic check
```
txs["topics"][0].hex() == "0x3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d"
```
started failing because the left-hand side didn't have the prefix "0x".
Not sure why this stopped working, but in any case, this PR proposes a
slightly more robust way of doing the check.
Also added a test to demonstrate the fix works. Again, the only
meaningful way of running the test is by having it print the logs as
well
` python -m pytest --log-cli-level=DEBUG
tests/e2e/mev_blocker_kickbacks_test.py`1 parent 213dd6d commit ba49d1b
2 files changed
+26
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
| 106 | + | |
| 107 | + | |
109 | 108 | | |
110 | 109 | | |
111 | 110 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments