From 60bf8a6e0e6b008ab4eafbdc76aaa1e5ee972dc3 Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Mon, 5 Feb 2024 00:30:44 +0530 Subject: [PATCH] change timelock while changing admin --- contracts/GovernorBravoDelegate.sol | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contracts/GovernorBravoDelegate.sol b/contracts/GovernorBravoDelegate.sol index f51b427..93c085b 100644 --- a/contracts/GovernorBravoDelegate.sol +++ b/contracts/GovernorBravoDelegate.sol @@ -359,6 +359,9 @@ contract InstaGovernorBravoDelegate is GovernorBravoDelegateStorageV1, GovernorB // Store admin with value pendingAdmin admin = pendingAdmin; + // Store timelock with value pendingAdmin + emit NewTimelock(timelock, pendingAdmin); + timelock = pendingAdmin; // Clear the pending value pendingAdmin = address(0);