|
|
@ -104,10 +104,7 @@ class SlitherSolc(Slither): |
|
|
|
return |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
for contract_data in data_loaded[self.get_children()]: |
|
|
|
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'] |
|
|
|
assert contract_data[self.get_key()] in ['ContractDefinition', 'PragmaDirective', 'ImportDirective'] |
|
|
|
if contract_data[self.get_key()] == 'ContractDefinition': |
|
|
|
if contract_data[self.get_key()] == 'ContractDefinition': |
|
|
|
contract = ContractSolc04(self, contract_data) |
|
|
|
contract = ContractSolc04(self, contract_data) |
|
|
|