From e5a47e80d788264b6a5c5e60c3e9b7cfb40c14c4 Mon Sep 17 00:00:00 2001 From: Kirill Kuvshinov Date: Sun, 20 Aug 2023 17:19:53 +0300 Subject: [PATCH] fix: add a missing param to SwapRouter deployment script Problem: The current version of the core pool SwapRouter accepts vBNB as the last argument. The deployment script fails because it doesn't pass this argument to the constructor. Solution: Add the missing argument. --- deploy/006-deploy-swaprouter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/006-deploy-swaprouter.ts b/deploy/006-deploy-swaprouter.ts index 6fc9a5384..6425678e3 100644 --- a/deploy/006-deploy-swaprouter.ts +++ b/deploy/006-deploy-swaprouter.ts @@ -27,7 +27,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) { await deploy("SwapRouter", { contract: "SwapRouter", from: deployer, - args: [WBNBAddress, pancakeFactoryAddress, ADDRESSES[networkName].Unitroller], + args: [WBNBAddress, pancakeFactoryAddress, ADDRESSES[networkName].Unitroller, ADDRESSES[networkName].vBNB], log: true, autoMine: true, });