Skip to content

Commit

Permalink
chore: update router deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Sep 26, 2021
1 parent 69a6cbd commit da410e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deploy/UniswapV2Router02.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { WNATIVE } = require("@sushiswap/sdk");
const { WNATIVE_ADDRESS } = require("@sushiswap/sdk");

module.exports = async function ({ getNamedAccounts, deployments }) {
const { deploy } = deployments;
Expand All @@ -11,8 +11,8 @@ module.exports = async function ({ getNamedAccounts, deployments }) {

if (chainId === "31337") {
wethAddress = (await deployments.get("WETH9Mock")).address;
} else if (chainId in WNATIVE) {
wethAddress = WNATIVE[chainId].address;
} else if (chainId in WNATIVE_ADDRESS) {
wethAddress = WNATIVE_ADDRESS[chainId];
} else {
throw Error("No WNATIVE!");
}
Expand Down

0 comments on commit da410e3

Please sign in to comment.