dappnode / sdk-publish

Web app to execute DAppNode Package publish transaction
http://dappnode.github.io/sdk-publish
3 stars 0 forks source link

Validate the field Valid semver #20

Open tropicar opened 2 years ago

tropicar commented 2 years ago

Is your feature request related to a problem? Please describe.

If you try to publish a package for the first time, the version must be 1.0.0, 0.1.0 or 0.0.1. If this does not case, once you have signed the package and publish it, it appears an operation on metamask as execution reverted.

Describe the solution you'd like

The sdk-publish must check this value correctly and show a more detailed error.

Additional context

You can replicate this error, if you try to publish a new package for the first time in the public registry and define the version as 1.3.0 for example, sign the package and try to publish it.