Skip to content

better error message when trying to add to root registry #55

Description

@chadoh

If you try:

stellar registry publish-hash --wasm-name tansu ...

...and don't know that you need to add unverified/tansu instead, you get this error message:

error: Missing signing key for account GAMPJROHOAW662FINQ4XQOY2ULX5IEGYXCI4SMZYE75EHQBR6PSTJG3M

This is because GAMP… is the admin of the root registry, and you are trying to publish to the root registry. But what an unintelligible error message! No one is going to know what to do with that. We should say something like:

Account {source_account} is not allowed publishing to the {channel} Registry. Try publishing to `unverified` instead:

    stellar registry publish-hash --wasm-name unverified/tansu ...

Then you can request your contract be added to the {channel} Registry by creating an issue at https://github.com/stellar-registry/gov/issues/new

This should obviously say deploy if they tried to deploy, and show the original command with the name prefixed with unverified. If they try to publish to oz/ or some other contract for which they don't have permission, it should switch oz/ to unverified/, not naïvely prefix with unverified/ and end up with unverified/oz/lol.

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