-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OnDeploy operation #1932
Comments
Maybe we can call |
As I understand it, _initialize is runtime initialization, so that won't accomplish what I'm suggesting. The NEP-5 template contract has a Deploy method that the contract owner is expected to invoke after deployment. I'm suggesting there should be a mechanism to optionally invoke this operation during deployment |
I thought that it was easier to do it in the constructor, but it won't be faster, please take a look again. |
Summary or problem description
Contacts often have a deploy method the owner has to invoke after deployment
Do you have any solution you want to propose?
Contacts should be able to specify an on deploy operation that is invoked automatically by the system on deployment (including update scenarios)
Neo Version
Where in the software does this update applies to?
The text was updated successfully, but these errors were encountered: