Zilliqa / hardhat-scilla-plugin

MIT License
3 stars 0 forks source link

Add event logs translators to have easier chai matching. #29

Closed its-saeed closed 1 year ago

its-saeed commented 1 year ago

It was hard to expect Bool or Option values in events, but it isn't anymore! ;D

Here is how a boolean value looks like in the logs:

      -    "value": {
      -      "argtypes": []
      -      "arguments": []
      -      "constructor": "False"
      -    }
      -    "vname": "b"

No it's translated to something like:

{
  "type": "Bool",
  "value": false,
  "vname": "b"
}

way easier to match using chai matchers.