Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy and Initialize Smart Contracts Tool - Improve error message if uploaded schema is not good #132

Open
mh-concordium opened this issue Nov 13, 2023 · 0 comments
Labels
[Type] Change Request Some visible functionality should be change.

Comments

@mh-concordium
Copy link

mh-concordium commented Nov 13, 2023

Description
I have tried to upload schema exported with cargo concordium build -b schema-base-64.b64 The error messagecould be intrepreted in a different way than it is not supported.

Error: Deserializing the returnValue from the 'mh_nft.view' method of contract '7262' failed. Original error: Error: Missing Schema Version.

Steps to Reproduce
Try to read a contract deployed from a module that doesn't have embedded schema while uploading base-64 schema.

Expected Result
Maybe the error message could say that we support/require binary export of a schema.

Maybe we could also just write in the frontend that we explicitly need a binary. From the heading above the file upload field Upload Smart Contract Module Schema File (e.g. schema.bin) I had impression that I can use any of the schema exports while schema.bin is one of the examples we can use.

Actual Result
Error message appears:

Error: Deserializing the returnValue from the 'mh_nft.view' method of contract '7262' failed. Original error: Error: Missing Schema Version.
Versions

  • Software Version:3.0.0
@mh-concordium mh-concordium added the [Type] Change Request Some visible functionality should be change. label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Change Request Some visible functionality should be change.
Projects
None yet
Development

No branches or pull requests

1 participant