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

Compiler error #64

Closed
WyattMufson opened this issue Jun 20, 2019 · 8 comments
Closed

Compiler error #64

WyattMufson opened this issue Jun 20, 2019 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@WyattMufson
Copy link
Collaborator

When compiling the Ryu NFT contract and running the name method I get the error:

Error: does not support the operation code

If I compile it with SmartX, it works. SmartX gives me the script hash bd97b827693a1ab0aa2c61d647915851676daa8e and the compiler locally gives me 08bb4246c8ef7c3891c46749b02d07ada3fdac07.

@WyattMufson WyattMufson added the bug Something isn't working label Jun 20, 2019
@WyattMufson
Copy link
Collaborator Author

This happens on the test net, but works on a private net running the most recent version of Ontology.

@carltraveler
Copy link
Collaborator

did you use the lastest compiler to run the on ontology main net? I think you can check out the lastest tag

@WyattMufson
Copy link
Collaborator Author

So when running it with the latest version of the python compiler the script hash does not match the one with smartx version. When running it with the release version 1.1.0 it matches smartx.

Why does the newer build of the compiler give a different script hash?

@carltraveler
Copy link
Collaborator

because of different byte code generated

@WyattMufson
Copy link
Collaborator Author

Is it a problem that they have different byte code? Will that not effect the contract when being used?

@WyattMufson
Copy link
Collaborator Author

Would you recommend using the v1.1.0 compiler for releases to the mainnet?

@carltraveler
Copy link
Collaborator

yes. that why I tag the v1. 1.0

@WyattMufson
Copy link
Collaborator Author

Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants