Skip to content

Commit

Permalink
allow resetting hasPranked for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wadealexc committed Dec 11, 2024
1 parent a7da452 commit a484bd7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/templates/MultisigBuilder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import "../utils/ZeusScript.sol";
* @dev Abstract contract for building arbitrary multisig scripts.
*/
abstract contract MultisigBuilder is ZeusScript {

bool private hasPranked;

modifier prank(address caller) {
Expand Down Expand Up @@ -45,4 +44,9 @@ abstract contract MultisigBuilder is ZeusScript {
require(hasPranked, "MultisigBuilder._stopPrank: _startPrank not called");
vm.stopPrank();
}

/// @dev Only meant for use with tests. Please ensure you know what you are doing if you call this!
function _unsafeResetHasPranked() internal {
hasPranked = false;
}
}

0 comments on commit a484bd7

Please sign in to comment.