diff --git a/CCTF_Solutions_main/ctf.sol b/CCTF_Solutions_main/ctf.sol index 35f5ea1..10279c0 100644 --- a/CCTF_Solutions_main/ctf.sol +++ b/CCTF_Solutions_main/ctf.sol @@ -52,6 +52,7 @@ contract CCTF9 is Verifier { event FlagAdded(uint256 indexed flagId, Hash flagHash); event FlagRemoved(uint256 indexed flagId); event FlagSolved(uint256 indexed flagId, address indexed solver); + event PlayerRegistered(address playerAddress); constructor(uint256 _volMaxPoints) { admin = msg.sender; @@ -89,6 +90,7 @@ contract CCTF9 is Verifier { "Already registered or banned" ); players[msg.sender].status = PlayerStatus.Verified; + emit PlayerRegistered(msg.sender); } /// sets the player's status either to Unverified, Verified or Banned