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); }