Skip to content

Commit

Permalink
switch transition window to 3 minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
SurfingNerd committed Oct 31, 2023
1 parent f732503 commit 64a4a66
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/upgrade_contracts2.ts
Original file line number Diff line number Diff line change
@@ -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);
}

Expand Down

0 comments on commit 64a4a66

Please sign in to comment.