From 293c3ed1ee0573ba9d0b92896f7d8b447aa11572 Mon Sep 17 00:00:00 2001 From: leovct Date: Mon, 25 Nov 2024 15:21:05 +0100 Subject: [PATCH] fix: delegation exploit --- test/EthernautCTF/DelegationExploit.t.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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