forked from DMDcoin/diamond-contracts-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implementation for setting the transition timewindow length
- Loading branch information
1 parent
04ac429
commit f732503
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { ethers, upgrades } from "hardhat"; | ||
|
||
|
||
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); | ||
|
||
console.log("Done.", txResult); | ||
} | ||
|
||
|
||
upgrade().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |