Skip to content

Commit bac369d

Browse files
schmirezdac
authored andcommitted
Satisfy pre-commit
1 parent bf194bb commit bac369d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

contracts/deploy/090_fund.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
const { ethers } = require("hardhat");
2-
const { BigNumber } = require("ethers");
32
const { fund } = require("../lib/fund.js");
43

54
module.exports = async function (hre) {

contracts/lib/configure-keypers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { ethers } = require("hardhat");
99
//TODO since we want to call this for new keypers
1010
// this should also check and eventually fund the
1111
// keypers if they are below the target funding.
12-
async function configure_keypers(keyperAddrs, blockOffset = 10) {
12+
async function configure_keypers(keyperAddrs, blockOffset = 15) {
1313
if (keyperAddrs.length == 0) {
1414
console.log("WARNING: cannot configure keypers: no keyper addresses given");
1515
return;
@@ -46,7 +46,7 @@ async function configure_keypers(keyperAddrs, blockOffset = 10) {
4646

4747
const cfg = await ethers.getContract("KeyperConfig");
4848
const currentBlock = await ethers.provider.getBlockNumber();
49-
const activationBlockNumber = currentBlock + 15;
49+
const activationBlockNumber = currentBlock + blockOffset;
5050

5151
const activeConfig = await cfg.getActiveConfig(activationBlockNumber);
5252
if (activeConfig[1].toNumber() === configSetIndex) {

contracts/scripts/change-keypers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
const fs = require("fs");
66
const process = require("process");
77
const path = require("path");
8+
const { ethers } = require("hardhat");
89
const { configure_keypers } = require("../lib/configure-keypers.js");
910
const { fund } = require("../lib/fund.js");
1011

0 commit comments

Comments
 (0)