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
Hello. In a contract, there is a modifier that checks which address is stored in a specific transient slot (tstore). I'm trying to test this contract. Is there any way in Foundry tests to bypass this check? MockCall doesn't help because the check is internal. I need something like vm.store, but for transient. Alternatively, how can I bypass a single revert() in the modifier?
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
-
Hello. In a contract, there is a modifier that checks which address is stored in a specific transient slot (tstore). I'm trying to test this contract. Is there any way in Foundry tests to bypass this check? MockCall doesn't help because the check is internal. I need something like vm.store, but for transient. Alternatively, how can I bypass a single revert() in the modifier?
Beta Was this translation helpful? Give feedback.
All reactions