Closed mrx23dot closed 2 years ago
Hey @mrx23dot,
I don't have an intention to change this behavior. If the rule does not match it should return an empty object/list which you can easily evaluate to bool if you prefer. I would anyway suggest to use --output
to dump the full results as json and post-process it 🙌
Hello,
solgrep 02253dfa1f23e72e2e3e1c6b9cd2b8b0a2fc7bc5_SoEToken.sol --rule=IsInitializable -o out.json
02253dfa1f23e72e2e3e1c6b9cd2b8b0a2fc7bc5_SoEToken.txtgives empty result: {} , I would expect true/false for response.
Could we include IsInitializable into Stats? It would spare us an extra call.