You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only solution I can think of right now would be to create a mock contract specifically for testing, and add proxy functions in that mock for calling PRBMath's free functions. Similar to the PRBMathUD60x18Mock contract that used to exist before the switch to Foundry.
However, that wouldn't solve the parameterized tests issue, as per the explanation I gave in this comment.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Foundry does NOT currently have native support for:
test.each
in JavaScript.See these open issues for more details
snapshots
): track internal gas usage foundry-rs/foundry#3766The only solution I can think of right now would be to create a mock contract specifically for testing, and add proxy functions in that mock for calling PRBMath's free functions. Similar to the
PRBMathUD60x18Mock
contract that used to exist before the switch to Foundry.However, that wouldn't solve the parameterized tests issue, as per the explanation I gave in this comment.
Beta Was this translation helpful? Give feedback.
All reactions