Updated PlayerRegistered event to the CTF contract
parent
cb4cabd600
commit
856b568780
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue