Skip to content

Commit 29056a0

Browse files
Transpile 83b829e0d
1 parent 473630f commit 29056a0

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

contracts/governance/extensions/GovernorNoncesKeyedUpgradeable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {SignatureChecker} from "@openzeppelin/contracts/utils/cryptography/Signa
1010
import {Initializable} from "../../proxy/utils/Initializable.sol";
1111

1212
/**
13-
* @dev An extension of {Governor} that extends existing nonce management to use {NoncesKeyed}, where the key is the first 192 bits of the `proposalId`.
13+
* @dev An extension of {Governor} that extends existing nonce management to use {NoncesKeyed}, where the key is the low-order 192 bits of the `proposalId`.
1414
* This is useful for voting by signature while maintaining separate sequences of nonces for each proposal.
1515
*
1616
* NOTE: Traditional (un-keyed) nonces are still supported and can continue to be used as if this extension was not present.

contracts/utils/cryptography/signers/MultiSignerERC7913Upgradeable.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ abstract contract MultiSignerERC7913Upgradeable is Initializable, AbstractSigner
251251
*
252252
* Requirements:
253253
*
254-
* * The `signatures` arrays must be at least as large as the `signers` arrays. Panics otherwise.
254+
* * The `signatures` and `signers` arrays must be equal in length. Returns false otherwise.
255255
*/
256256
function _validateSignatures(
257257
bytes32 hash,

scripts/generate/templates/EnumerableMap.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,9 @@ function remove(${name} storage map, ${key.type} key) internal returns (bool) {
219219
/**
220220
* @dev Removes all the entries from a map. O(n).
221221
*
222-
* WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
223-
* function uncallable if the map grows to the point where clearing it consumes too much gas to fit in a block.
222+
* WARNING: This function has an unbounded cost that scales with map size. Developers should keep in mind that
223+
* using it may render the function uncallable if the map grows to the point where clearing it consumes too much
224+
* gas to fit in a block.
224225
*/
225226
function clear(${name} storage map) internal {
226227
clear(map._inner);

scripts/generate/templates/EnumerableSet.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ function _remove(Set storage set, bytes32 value) private returns (bool) {
130130
/**
131131
* @dev Removes all the values from a set. O(n).
132132
*
133-
* WARNING: Developers should keep in mind that this function has an unbounded cost and using it may render the
134-
* function uncallable if the set grows to the point where clearing it consumes too much gas to fit in a block.
133+
* WARNING: This function has an unbounded cost that scales with set size. Developers should keep in mind that
134+
* using it may render the function uncallable if the set grows to the point where clearing it consumes too much
135+
* gas to fit in a block.
135136
*/
136137
function _clear(Set storage set) private {
137138
uint256 len = _length(set);

0 commit comments

Comments
 (0)