Created
July 18, 2022 18:59
-
-
Save CJ42/c61a90fa503b29aea7be207b91c072aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.10; | |
| import "./Timers.sol"; | |
| contract RaceTournament { | |
| mapping(address => Timers.Timestamp) racers; | |
| function startRacerTimer(address _racer, uint64 _deadline) public { | |
| Timers.Timestamp storage racerTimer = racers[_racer]; | |
| Timers.setDeadline(racerTimer, _deadline); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment