1

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

1 Answer 1

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.

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.