From 64a4a66ee332bc9d6e86eec30d8fa1fbef5736c6 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 31 Oct 2023 12:48:59 +0100 Subject: [PATCH] switch transition window to 3 minutes --- scripts/upgrade_contracts2.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/upgrade_contracts2.ts b/scripts/upgrade_contracts2.ts index 0069dda..75d0a31 100644 --- a/scripts/upgrade_contracts2.ts +++ b/scripts/upgrade_contracts2.ts @@ -1,16 +1,14 @@ import { ethers, upgrades } from "hardhat"; +// second step of contract upgade: +// setStakingTransitionTimeframeLength to 300 seconds. async function upgrade() { const [deployer] = await ethers.getSigners(); - console.log("upgrading with account from: ", deployer.address); - let stakingContract = await ethers.getContractAt("StakingHbbft", "0x1100000000000000000000000000000000000001"); - - let txResult = await stakingContract.setStakingTransitionTimeframeLength(300); - + let txResult = await stakingContract.setStakingTransitionTimeframeLength(180); console.log("Done.", txResult); }