|
|
@ -3,19 +3,18 @@ from slither.slither import Slither |
|
|
|
from slither.slithir.convert import convert_expression |
|
|
|
from slither.slithir.convert import convert_expression |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if len(sys.argv) != 4: |
|
|
|
if len(sys.argv) != 2: |
|
|
|
print('python.py function_called.py functions_called.sol Contract function()') |
|
|
|
print('python function_called.py functions_called.sol') |
|
|
|
exit(-1) |
|
|
|
exit(-1) |
|
|
|
|
|
|
|
|
|
|
|
# Init slither |
|
|
|
# Init slither |
|
|
|
slither = Slither(sys.argv[1]) |
|
|
|
slither = Slither(sys.argv[1]) |
|
|
|
|
|
|
|
|
|
|
|
# Get the contract |
|
|
|
# Get the contract |
|
|
|
contract = slither.get_contract_from_name(sys.argv[2]) |
|
|
|
contract = slither.get_contract_from_name('Test') |
|
|
|
|
|
|
|
|
|
|
|
# Get the variable |
|
|
|
# Get the variable |
|
|
|
test = contract.get_function_from_signature(sys.argv[3]) |
|
|
|
test = contract.get_function_from_signature('one()') |
|
|
|
#test = contract.get_function_from_signature('two()') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nodes = test.nodes |
|
|
|
nodes = test.nodes |
|
|
|
|
|
|
|
|
|
|
|