dyne/Zenroom

On empty string contract logs is not a json in js

Closed this issue · 0 comments

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"
}