Skip to content

Commit

Permalink
fix(DrawBeacon): fix shadowing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PierrickGT committed Oct 6, 2021
1 parent a78bb0d commit 1c15c6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/DrawBeacon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ contract DrawBeacon is IDrawBeacon, Ownable {
}

/// @inheritdoc IDrawBeacon
function calculateNextBeaconPeriodStartTime(uint256 _currentTime)
function calculateNextBeaconPeriodStartTime(uint256 _time)
external
view
override
Expand All @@ -201,7 +201,7 @@ contract DrawBeacon is IDrawBeacon, Ownable {
_calculateNextBeaconPeriodStartTime(
beaconPeriodStartedAt,
beaconPeriodSeconds,
uint64(_currentTime)
uint64(_time)
);
}

Expand Down
4 changes: 2 additions & 2 deletions contracts/interfaces/IDrawBeacon.sol
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ interface IDrawBeacon {

/**
* @notice Calculates when the next beacon period will start.
* @param currentTime The timestamp to use as the current time
* @param time The timestamp to use as the current time
* @return The timestamp at which the next beacon period would start
*/
function calculateNextBeaconPeriodStartTime(uint256 currentTime) external view returns (uint64);
function calculateNextBeaconPeriodStartTime(uint256 time) external view returns (uint64);

/**
* @notice Can be called by anyone to cancel the draw request if the RNG has timed out.
Expand Down

0 comments on commit 1c15c6e

Please sign in to comment.