Skip to content

Instantly share code, notes, and snippets.

@CJ42
Created July 18, 2022 18:59
Show Gist options
  • Select an option

  • Save CJ42/c61a90fa503b29aea7be207b91c072aa to your computer and use it in GitHub Desktop.

Select an option

Save CJ42/c61a90fa503b29aea7be207b91c072aa to your computer and use it in GitHub Desktop.
// 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