Open Tiko7454 opened 11 months ago
The bug above induces another bug with empty emit node in the control flow graph.
pragma solidity ^0.4.21;
contract C {
event something_wrong(uint256[2]);
uint256[2] arr = [0, 1];
function f() public {
emit something_wrong(arr);
}
}
Describe the issue:
For solidity version 0.4.23 the parsing doens't work properly for the code below. https://github.com/crytic/slither/blob/e3dcf1ecd3e9de60da046de471c5663ab637993a/slither/solc_parsing/solidity_types/type_parsing.py#L430 here
str(length) == '"12"'
instead of'12'
Code example to reproduce the issue:
Version:
0.10.0
Relevant log output: