My smart contract constructor function accepts 2 parameters for being deployed.
I have developed a user interface for this contract by Hardhat, React, and Ethers.
Now I want to create an HTML form on the React page that receives the two required parameters from the user and deploys a new contract based on the given parameters and shows the address of the new contract.
My question is this: Is it possible to deploy a new smart contract on the UI? ( Filling out the form desirably and clicking the submit button to see the new deployed smart contract address )
Thanks in advance for any kind of help