From da410e3a500dd3495bc09ce81ce2148f669331ef Mon Sep 17 00:00:00 2001 From: Matthew Lilley Date: Sun, 26 Sep 2021 21:33:19 +0100 Subject: [PATCH] chore: update router deploy script --- deploy/UniswapV2Router02.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/UniswapV2Router02.js b/deploy/UniswapV2Router02.js index 02ab11a105..228fa8f734 100644 --- a/deploy/UniswapV2Router02.js +++ b/deploy/UniswapV2Router02.js @@ -1,4 +1,4 @@ -const { WNATIVE } = require("@sushiswap/sdk"); +const { WNATIVE_ADDRESS } = require("@sushiswap/sdk"); module.exports = async function ({ getNamedAccounts, deployments }) { const { deploy } = deployments; @@ -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!"); }