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

1 Answer 1


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);
  • Ok I get it. Those parameters for the constructor come from the contract owner, passing them while deploying?
    – tcf01
    Commented Feb 24, 2022 at 6:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.