Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Sep 19, 2024
1 parent 6b8d355 commit 63446fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Ethernaut/GatekeeperOneExploit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ contract Helper2 {
uint gasAmount = 8191 * 10;
bool success = false;
uint i;
while(!success) {
while (!success) {
i++;
gasAmount -= 1;
try target.enter{gas: gasAmount}(_gateKey) returns (bool result) {
success = result;
} catch{}
} catch {}
}
console2.log('Exploit succeeded in %d tries', i);
}
Expand Down

0 comments on commit 63446fe

Please sign in to comment.