Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed Nov 25, 2024
1 parent 6a95dea commit e0f5bd0
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/EthernautCTF/GatekeeperOne.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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');
_;
}

Expand Down

0 comments on commit e0f5bd0

Please sign in to comment.