fix spelling issue (#5490)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
pull/5499/head^2
moonman 4 days ago committed by GitHub
parent 70371ffd32
commit 9f2e12932c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      contracts/governance/extensions/GovernorTimelockControl.sol
  2. 6
      contracts/utils/structs/Checkpoints.sol
  3. 2
      scripts/generate/templates/Checkpoints.js

@ -17,7 +17,7 @@ import {SafeCast} from "../../utils/math/SafeCast.sol";
* the assets and permissions must be attached to the {TimelockController}. Any asset sent to the {Governor} will be
* inaccessible from a proposal, unless executed via {Governor-relay}.
*
* WARNING: Setting up the TimelockController to have additional proposers or cancellers besides the governor is very
* WARNING: Setting up the TimelockController to have additional proposers or cancelers besides the governor is very
* risky, as it grants them the ability to: 1) execute operations as the timelock, and thus possibly performing
* operations or accessing funds that are expected to only be accessible through a vote, and 2) block governance
* proposals that have been approved by the voters, effectively executing a Denial of Service attack.

@ -114,7 +114,7 @@ library Checkpoints {
}
/**
* @dev Returns the number of checkpoint.
* @dev Returns the number of checkpoints.
*/
function length(Trace224 storage self) internal view returns (uint256) {
return self._checkpoints.length;
@ -317,7 +317,7 @@ library Checkpoints {
}
/**
* @dev Returns the number of checkpoint.
* @dev Returns the number of checkpoints.
*/
function length(Trace208 storage self) internal view returns (uint256) {
return self._checkpoints.length;
@ -520,7 +520,7 @@ library Checkpoints {
}
/**
* @dev Returns the number of checkpoint.
* @dev Returns the number of checkpoints.
*/
function length(Trace160 storage self) internal view returns (uint256) {
return self._checkpoints.length;

@ -119,7 +119,7 @@ function latestCheckpoint(${opts.historyTypeName} storage self) internal view re
}
/**
* @dev Returns the number of checkpoint.
* @dev Returns the number of checkpoints.
*/
function length(${opts.historyTypeName} storage self) internal view returns (uint256) {
return self.${opts.checkpointFieldName}.length;

Loading…
Cancel
Save