Skip to content

Additional parameter to _deploy method #2238

@roman-khimov

Description

@roman-khimov

Summary or problem description
Some contracts require initialization before their first real use and we have _deploy method now to run at deployment/update stage. But some contracts need to get an additional data for proper initialization (hashes of other contracts, addresses of admins, other data, https://github.com/nspcc-dev/neofs-contract/blob/c6fd4dc77c3aab3795057eb3fae2a7946285f3c5/alphabet/alphabet_contract.go#L59 for example) and we can't pass it at the moment to the _deploy thus an additional initialization transaction is still needed.

Do you have any solution you want to propose?
Add an additional StackItem data parameter to Deploy (and Update?) method of ManagementContract and pass it to _deploy callback.

Neo Version

  • Neo 3

Where in the software does this update applies to?

  • Other: ManagementContract

Metadata

Metadata

Assignees

No one assigned

    Labels

    DiscussionInitial issue state - proposed but not yet accepted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions