Deprecate changePrank
#866
Labels
effort: medium
Default level of effort.
priority: 2
We will do our best to deal with this.
type: test
Adding, updating, or removing tests.
work: complex
Probe-sense-respond. The relationship between cause and effect can only be perceived in retrospect.
The foundry cheatcode
changePrank
has been deprecated and will likely be removed in the future release.Replacing it with
vm.startPrank
seems like a straightforward solution but it has introduced a new requirement that the prank must have been applied atleast once before overriding. This has also been raised by @PaulRBerg in foundry-rs/foundry#4942 but a shame that they decided to close it in favour of the suggestion to handle it using readCallers.Since we decided to update
forge-std
, the tests now throw a deprecation warning. There are two solutions I can think of:vm.startPrank
.changePrank
function ourselves which callsvm.stopPrank
followed byvm.startPrank
.Wdyt @PaulRBerg @andreivladbrg.
Related
StdCheats
): deprecate changePrank foundry-rs/forge-std#434The text was updated successfully, but these errors were encountered: