Skip to content

Suggestion: add UI toggle for default_impl attribute in contract generation #706

@jsmaxi

Description

@jsmaxi

Currently, the OpenZeppelin Wizard for Stellar (https://wizard.openzeppelin.com/stellar) generates contracts that use default_impl attribute to implement all trait functions, when possible.

Suggestion is to add a UI toggle to choose between:

  • Using the #[default_impl] attribute (could be the default option)
  • Generating explicit implementations of all trait functions

Example for Fungible Token:
https://github.com/OpenZeppelin/stellar-contracts/blob/a5fada3912bc4744eea81db97ad3a0f8adda6099/examples/fungible-capped/src/contract.rs#L32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions