Skip to content

Commit

Permalink
chore: more efficient way
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Sep 19, 2024
1 parent 63446fe commit e78b58a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/Ethernaut/GatekeeperOneExploit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ contract Helper2 {
uint i;
while (!success) {
i++;
gasAmount -= 1;
gasAmount += 1;
try target.enter{gas: gasAmount}(_gateKey) returns (bool result) {
success = result;
} catch {}
Expand Down

0 comments on commit e78b58a

Please sign in to comment.