I want to deploy my contract by taking in parameters from the webpage and they serve as parameters for my contract's constructor and when I click on a button I should be able to deploy the contract on testrpc
Asked
Active
Viewed 604 times
1 Answers
1
You can use a factory pattern contract like this: Is There a Simple Contract Factory Pattern?
Connect a button in the UI to your newContract() factory function.
In my estimation, this is preferable to a client-side compile because it provides assurance that the deployed contract is an exact replica of the factory's template.
Hope it helps.
Rob Hitchens
- 55,151
- 11
- 89
- 145