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

Ontology contract is different from NEO contract #6

Open
johnny7861532 opened this issue Nov 21, 2018 · 1 comment
Open

Ontology contract is different from NEO contract #6

johnny7861532 opened this issue Nov 21, 2018 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@johnny7861532
Copy link
Contributor

Ontology using GO to rewrite NEO VM, so need to modify NEO contract in order to compile.
Ex: has_key do work on NEO but not on Ontology.

@johnny7861532 johnny7861532 self-assigned this Nov 21, 2018
@johnny7861532 johnny7861532 added the bug Something isn't working label Nov 21, 2018
@johnny7861532
Copy link
Contributor Author

Ontology is very different from NEO, the do have many in common, but the codebase are totally different.

Ontology got two different way to call a contract:

  1. PreExec, free of charge but read only
    ./ontology contract invoke --address fb9dade88e85e7770bbb41a49091c64b53b4ea45 --prepare --params string:owner,[string:tester,string:AGa9bx6U34QxfSmeyEV9LL1DbUD4FVyPKK] --return string
  2. Invoke, pay with ONG, write data to the blockchain.
    ./ontology contract invoke --address fb9dade88e85e7770bbb41a49091c64b53b4ea45 --params string:Register,[string:johnny,string:AGa9bx6U34QxfSmeyEV9LL1DbUD4FVyPKK] --gaslimit 200000

@johnny7861532 johnny7861532 changed the title NEO contract not fully work on Ontology Ontology contract is different from NEO contract Nov 21, 2018
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

1 participant