Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix MEV Blocker kickbacks test #124

Merged
merged 2 commits into from
Oct 24, 2024
Merged

Conversation

harisang
Copy link
Contributor

@harisang harisang commented Oct 23, 2024

@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

@harisang harisang changed the title fix mev blocker kickbacks test Fix MEV Blocker kickbacks test Oct 23, 2024
@harisang harisang requested a review from fhenneke October 23, 2024 22:30
@harisang harisang merged commit ba49d1b into main Oct 24, 2024
2 checks passed
@harisang harisang deleted the fix_mevblocker_kickbacks_test branch October 24, 2024 12:16
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants