tintinweb / solgrep

🧠 A scriptable semantic grep utility for solidity
https://www.npmjs.com/package/solgrep
142 stars 17 forks source link

IsInitializable empty result #4

Closed mrx23dot closed 2 years ago

mrx23dot commented 2 years ago

Hello,

solgrep 02253dfa1f23e72e2e3e1c6b9cd2b8b0a2fc7bc5_SoEToken.sol --rule=IsInitializable -o out.json 02253dfa1f23e72e2e3e1c6b9cd2b8b0a2fc7bc5_SoEToken.txt

gives empty result: {} , I would expect true/false for response.

Could we include IsInitializable into Stats? It would spare us an extra call.

tintinweb commented 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 🙌