Skip to content

Commit

Permalink
fix: add missing contract types in deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
kkirka committed Jun 22, 2023
1 parent bfb552f commit 26767c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/013-vip-based-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const configureRewards = async (
const poolCommands = await Promise.all(
rewards.map(async (rewardConfig: RewardConfig) => {
const contractName = `RewardsDistributor_${rewardConfig.asset}_${pool.id}`;
const rewardsDistributor = await ethers.getContract(contractName);
const rewardsDistributor = await ethers.getContract<RewardsDistributor>(contractName);
return [
...(await acceptOwnership(contractName, hre)),
await addRewardsDistributor(rewardsDistributor, pool, rewardConfig),
Expand Down Expand Up @@ -273,7 +273,7 @@ const addMarkets = async (
deploymentConfig: DeploymentConfig,
hre: HardhatRuntimeEnvironment,
) => {
const poolRegistry = await ethers.getContract("PoolRegistry");
const poolRegistry = await ethers.getContract<PoolRegistry>("PoolRegistry");
const poolCommands = await Promise.all(
unregisteredVTokens.map(async (pool: PoolConfig) => {
const vTokenCommands = await Promise.all(
Expand Down

0 comments on commit 26767c4

Please sign in to comment.