Skip to content

Commit 2c0d228

Browse files
crStivAmxx
andauthored
fix: typos (#5811)
Co-authored-by: Hadrien Croubois <[email protected]>
1 parent a909a7d commit 2c0d228

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

contracts/governance/extensions/GovernorTimelockControl.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ abstract contract GovernorTimelockControl is Governor {
4747
return currentState;
4848
}
4949

50-
bytes32 queueid = _timelockIds[proposalId];
51-
if (_timelock.isOperationPending(queueid)) {
50+
bytes32 queueId = _timelockIds[proposalId];
51+
if (_timelock.isOperationPending(queueId)) {
5252
return ProposalState.Queued;
53-
} else if (_timelock.isOperationDone(queueid)) {
53+
} else if (_timelock.isOperationDone(queueId)) {
5454
// This can happen if the proposal is executed directly on the timelock.
5555
return ProposalState.Executed;
5656
} else {

contracts/mocks/TimelockReentrant.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ contract TimelockReentrant {
1212
_reentered = true;
1313
}
1414

15-
function enableRentrancy(address target, bytes calldata data) external {
15+
function enableReentrancy(address target, bytes calldata data) external {
1616
_reenterTarget = target;
1717
_reenterData = data;
1818
}

test/governance/TimelockController.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ describe('TimelockController', function () {
418418
reentrantOperation.predecessor,
419419
reentrantOperation.salt,
420420
]);
421-
await reentrant.enableRentrancy(this.mock, data);
421+
await reentrant.enableReentrancy(this.mock, data);
422422

423423
// Expect to fail
424424
await expect(
@@ -811,7 +811,7 @@ describe('TimelockController', function () {
811811
reentrantBatchOperation.predecessor,
812812
reentrantBatchOperation.salt,
813813
]);
814-
await reentrant.enableRentrancy(this.mock, data);
814+
await reentrant.enableReentrancy(this.mock, data);
815815

816816
// Expect to fail
817817
await expect(

0 commit comments

Comments
 (0)