Browse Source

fix: typos (#5811)

Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
crStiv 2 months ago
parent
commit
2c0d2284d1

+ 3 - 3
contracts/governance/extensions/GovernorTimelockControl.sol

@@ -47,10 +47,10 @@ abstract contract GovernorTimelockControl is Governor {
             return currentState;
         }
 
-        bytes32 queueid = _timelockIds[proposalId];
-        if (_timelock.isOperationPending(queueid)) {
+        bytes32 queueId = _timelockIds[proposalId];
+        if (_timelock.isOperationPending(queueId)) {
             return ProposalState.Queued;
-        } else if (_timelock.isOperationDone(queueid)) {
+        } else if (_timelock.isOperationDone(queueId)) {
             // This can happen if the proposal is executed directly on the timelock.
             return ProposalState.Executed;
         } else {

+ 1 - 1
contracts/mocks/TimelockReentrant.sol

@@ -12,7 +12,7 @@ contract TimelockReentrant {
         _reentered = true;
     }
 
-    function enableRentrancy(address target, bytes calldata data) external {
+    function enableReentrancy(address target, bytes calldata data) external {
         _reenterTarget = target;
         _reenterData = data;
     }

+ 2 - 2
test/governance/TimelockController.test.js

@@ -418,7 +418,7 @@ describe('TimelockController', function () {
                 reentrantOperation.predecessor,
                 reentrantOperation.salt,
               ]);
-              await reentrant.enableRentrancy(this.mock, data);
+              await reentrant.enableReentrancy(this.mock, data);
 
               // Expect to fail
               await expect(
@@ -811,7 +811,7 @@ describe('TimelockController', function () {
                 reentrantBatchOperation.predecessor,
                 reentrantBatchOperation.salt,
               ]);
-              await reentrant.enableRentrancy(this.mock, data);
+              await reentrant.enableReentrancy(this.mock, data);
 
               // Expect to fail
               await expect(