Skip to content

Commit

Permalink
fix: add a missing param to SwapRouter deployment script
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kkirka committed Aug 20, 2023
1 parent 924cf19 commit e5a47e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/006-deploy-swaprouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit e5a47e8

Please sign in to comment.