mockCall
's calldata partial matching behaviour doesn't work as expected
#1604
Labels
A-cheatcodes
Area: cheatcodes
C-forge
Command: forge
Cmd-forge-test
Command: forge test
T-bug
Type: bug
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (4604a42 2022-05-12T00:04:28.117376+00:00)
What command(s) is the bug in?
forge test
Operating System
macOS (Apple Silicon)
Describe the bug
The
mockCall
's partial calldata matching is not working as expected.This is probably because of the way the partial matching works, since it check for a match, and if not found, iterates and returns the first match. In this case, it looks like the iteration is happening from least specific to most specific when it should be the other way around
The text was updated successfully, but these errors were encountered: