From e0f5bd0a34d4a2162be5cc261cb13490fb2b6057 Mon Sep 17 00:00:00 2001 From: leovct Date: Mon, 25 Nov 2024 15:32:27 +0100 Subject: [PATCH] chore: lint --- src/EthernautCTF/GatekeeperOne.sol | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/EthernautCTF/GatekeeperOne.sol b/src/EthernautCTF/GatekeeperOne.sol index 09aa8ad..5a99bc2 100644 --- a/src/EthernautCTF/GatekeeperOne.sol +++ b/src/EthernautCTF/GatekeeperOne.sol @@ -15,18 +15,9 @@ contract GatekeeperOne { } modifier gateThree(bytes8 _gateKey) { - require( - uint32(uint64(_gateKey)) == uint16(uint64(_gateKey)), - 'Gate 3.1' - ); - require( - uint32(uint64(_gateKey)) != uint64(_gateKey), - 'Gate 3.2' - ); - require( - uint32(uint64(_gateKey)) == uint16(uint160(tx.origin)), - 'Gate 3.3' - ); + require(uint32(uint64(_gateKey)) == uint16(uint64(_gateKey)), 'Gate 3.1'); + require(uint32(uint64(_gateKey)) != uint64(_gateKey), 'Gate 3.2'); + require(uint32(uint64(_gateKey)) == uint16(uint160(tx.origin)), 'Gate 3.3'); _; }