Skip to content

Update filterFallbacks to be selective rather than all-or-nothing#1200

Merged
arcz merged 4 commits intocrytic:masterfrom
samalws-tob:updateFilterFallbacks
Apr 25, 2024
Merged

Update filterFallbacks to be selective rather than all-or-nothing#1200
arcz merged 4 commits intocrytic:masterfrom
samalws-tob:updateFilterFallbacks

Conversation

@samalws-tob
Copy link
Copy Markdown
Collaborator

This PR changes the filterFallbacks function so that it filters out fallbacks selectively, rather than either removing fallbacks from all contracts or none. It also removes the first argument of the function, which was unused.

Fixes issue 1 of #1134 (now it's 1000 calls/s in both cases, rather than 1000 in one and 10000 in the other; the performance only improved before because it was trying a bunch of fallback calls, which executed quickly because they didn't do anything)

@samalws-tob samalws-tob changed the title Update filterFallbacks Update filterFallbacks to be selective rather than all-or-nothing Mar 7, 2024
@samalws-tob samalws-tob marked this pull request as draft March 7, 2024 17:57
@samalws-tob samalws-tob marked this pull request as ready for review March 7, 2024 19:20
@arcz arcz merged commit 27ad095 into crytic:master Apr 25, 2024
datradito pushed a commit to datradito/echidna-mcp that referenced this pull request Dec 29, 2025
…ytic#1200)

* Update filterFallbacks

* hlint suggested eta reducing

* sometimes contractNames are filepath:name, we have to account for that

* calculate eventMap in mkWorld rather than giving it as an argument
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants