Skip to content

stellar contract init argument should name the contract struct as the argument #2347

@Nitish-bot

Description

@Nitish-bot

What problem does your feature solve?

Better DevEx and a quality of life change

What would you like to see?

When initializing a contract using the stellar cli, the contract struct should be named the same as the dir name instead of Contract itself.

So when I do stellar contract init counter the contract struct under contracts/counter/src/lib.rs should be called Counter and the appropriate changes should also apply to the impl and tests.

What alternatives are there?

Not sure

I would love to work on this issue since it seems like a pretty beginner friendly one and won't be a high priority for the dev team.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Backlog (Not Ready)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions