|
|
|
@ -104,10 +104,7 @@ class SlitherSolc(Slither): |
|
|
|
|
return |
|
|
|
|
|
|
|
|
|
for contract_data in data_loaded[self.get_children()]: |
|
|
|
|
# if self.solc_version == '0.3': |
|
|
|
|
# assert contract_data[self.get_key()] == 'Contract' |
|
|
|
|
# contract = ContractSolc03(self, contract_data) |
|
|
|
|
if self.solc_version == '0.4': |
|
|
|
|
|
|
|
|
|
assert contract_data[self.get_key()] in ['ContractDefinition', 'PragmaDirective', 'ImportDirective'] |
|
|
|
|
if contract_data[self.get_key()] == 'ContractDefinition': |
|
|
|
|
contract = ContractSolc04(self, contract_data) |
|
|
|
|