From f7695cc94ca1e507d0871ec19adb41eb1ebd0a17 Mon Sep 17 00:00:00 2001 From: Thrilok kumar Date: Tue, 6 Feb 2024 02:11:01 +0530 Subject: [PATCH] fix --- contracts/GovernorBravoDelegate.sol | 4 ++-- hardhat.config.js | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/contracts/GovernorBravoDelegate.sol b/contracts/GovernorBravoDelegate.sol index 249b0ac..6313598 100644 --- a/contracts/GovernorBravoDelegate.sol +++ b/contracts/GovernorBravoDelegate.sol @@ -360,8 +360,8 @@ contract InstaGovernorBravoDelegate is GovernorBravoDelegateStorageV1, GovernorB // Store admin with value pendingAdmin admin = pendingAdmin; // Store timelock with value pendingAdmin - emit NewTimelock(timelock, pendingAdmin); - timelock = pendingAdmin; + emit NewTimelock(address(timelock), pendingAdmin); + timelock = TimelockInterface(pendingAdmin); // Clear the pending value pendingAdmin = address(0); diff --git a/hardhat.config.js b/hardhat.config.js index 1a7bc14..6dbfd85 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -26,15 +26,14 @@ module.exports = { networks: { hardhat: { forking: { - url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`, + url: `https://1rpc.io/eth`, blockNumber: 12308027, }, blockGasLimit: 12000000, }, - kovan: { - url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`, - accounts: [`0x${PRIVATE_KEY}`], - gas: 12500000, + mainnet: { + url: `https://1rpc.io/eth`, + accounts: !PRIVATE_KEY ? [] : [ `0x${PRIVATE_KEY}`], }, }, etherscan: {