Skip to content

Commit

Permalink
change getContractAt to getContract for controller and wsqueeth (#499)
Browse files Browse the repository at this point in the history
Co-authored-by: Haythem Sellami <[email protected]>
  • Loading branch information
daryakaviani and haythem96 authored May 31, 2022
1 parent 5a80f10 commit 8b24f82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/hardhat/tasks/addSqueethLiquidity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ task("addSqueethLiquidity", "Add liquidity to wsqueeth pool")
const { deployer } = await getNamedAccounts();
const { positionManager, uniswapFactory } = await getUniswapDeployments(ethers, deployer, network.name)

const controller = await ethers.getContractAt("Controller", deployer);
const wsqueeth = await ethers.getContractAt("WPowerPerp", deployer);
const controller = await ethers.getContract("Controller", deployer);
const wsqueeth = await ethers.getContract("WPowerPerp", deployer);
const weth = await getWETH(ethers, deployer, network.name)

const isWethToken0 = parseInt(weth.address, 16) < parseInt(wsqueeth.address, 16)
Expand Down

1 comment on commit 8b24f82

@vercel
Copy link

@vercel vercel bot commented on 8b24f82 May 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.