程序理解
官方教程:
https://github.com/crytic/slither/wiki
https://github.com/crytic/slither/wiki/Usage#options
所有的printer
查看printer的list
slither --list-printers
继承图
slither file.sol --print inheritance-graph
输出dot文件,如下图
将dot文件转为png
输入命令行,安装这个包
apt install graphviz
输入,命令行转换为图
dot -Tpng test1.sol.inheritance-graph.dot -o test.png
test.png