diff --git a/test/EthernautCTF/DelegationExploit.t.sol b/test/EthernautCTF/DelegationExploit.t.sol index 3f6dd66..ca6787a 100644 --- a/test/EthernautCTF/DelegationExploit.t.sol +++ b/test/EthernautCTF/DelegationExploit.t.sol @@ -23,7 +23,7 @@ contract DelegationExploit is Test { console.log('Current owner: %s', owner); assertEq(owner, deployer); - vm.startPrank(exploiter); + vm.startPrank(exploiter, true); // Call the `fallback` method using Delegate's `pwn` selector. // TODO: Understand why the exploit does not work?! // https://github.com/foundry-rs/foundry/issues/824