From 63446fe1eef8359dd4d4a1274a161eccd0253ab3 Mon Sep 17 00:00:00 2001 From: leovct Date: Thu, 19 Sep 2024 15:11:40 +0200 Subject: [PATCH] chore: lint --- test/Ethernaut/GatekeeperOneExploit.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Ethernaut/GatekeeperOneExploit.t.sol b/test/Ethernaut/GatekeeperOneExploit.t.sol index b1f84f5..9ab31d3 100644 --- a/test/Ethernaut/GatekeeperOneExploit.t.sol +++ b/test/Ethernaut/GatekeeperOneExploit.t.sol @@ -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); }