Solidity Remix – Understanding Constructor Function Arguments in Remix

remixsolidity

I am reading this smart contract and I wonder where are those arguments come from. Or should I pass in those arguments when I deploy my smart contracts through remix? Thanks in advance.

smart contract

Best Answer

When deploy the smart contract via Remix, there's a place to input the constructor params.

remix params

If you deploy via script like hardhat, then you can pass the params via the deploy method:

const router = await QuickswapRouter.deploy(factoryAddress, MUMBAI_WMATIC);