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

On empty string contract logs is not a json in js #891

Closed
matteo-cristino opened this issue Jun 15, 2024 · 0 comments · Fixed by #892
Closed

On empty string contract logs is not a json in js #891

matteo-cristino opened this issue Jun 15, 2024 · 0 comments · Fixed by #892

Comments

@matteo-cristino
Copy link
Collaborator

When running a empty string contract from js the logs is not a json:

import { zencode_exec } from "zenroom";

zencode_exec('')
  .then((res) => console.log(res))
  .catch((err) => console.log(err))

will result in

{
  "result": "",
  "logs": "Empty string as script argument\nExecution aborted\n"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant