diff --git a/test/EthernautCTF/DelegationExploit.t.sol b/test/EthernautCTF/DelegationExploit.t.sol index 6d37f8c..4380fba 100644 --- a/test/EthernautCTF/DelegationExploit.t.sol +++ b/test/EthernautCTF/DelegationExploit.t.sol @@ -25,6 +25,8 @@ contract DelegationExploit is Test { vm.startPrank(exploiter); // 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 (bool success, ) = address(target).call(abi.encodeWithSignature('pwn()')); assertTrue(success); vm.stopPrank();