npx hardhat compile // this comiles contract
myth -a FILENAME.sol --execution-timeout 10 // 上运行它。
发布于 2022-12-14 14:42:54
现在帮助你可能太晚了,但我为其他人负责。
正如github问题所指出的,Mythril用solc编译了坚固性。https://github.com/ConsenSys/mythril/issues/1621
请将映射设置为solc.json,类似
{
"remappings": [ "@openzeppelin/=node_modules/@openzeppelin/" ],
"optimizer": {
"enabled": true
}
}然后跑
神话分析合同/hoge.sol --solc-json solc.json --执行-超时20
https://ethereum.stackexchange.com/questions/137994
复制相似问题