File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 5959 ## functions
6060 print (("\t " * level ) + "=== functions" )
6161 level += 2
62- for name in contract_object .functions .keys ():
63- print (("\t " * level ) + "* " + str (name ))
62+ for name , funcObj in contract_object .functions .items ():
63+ txtAttribs = []
64+ if funcObj .visibility :
65+ txtAttribs .append (funcObj .visibility )
66+ if funcObj .stateMutability :
67+ txtAttribs .append (funcObj .stateMutability )
68+ print (("\t " * level ) + "* " + str (name ) + "\t \t (" + ',' .join (txtAttribs )+ ")" )
6469 level -= 2
6570
Original file line number Diff line number Diff line change @@ -1146,6 +1146,9 @@ class FunctionObject(object):
11461146
11471147 def __init__ (self , node ):
11481148 self ._node = node
1149+ if (node .type == "FunctionDefinition" ):
1150+ self .visibility = node .visibility
1151+ self .stateMutability = node .stateMutability
11491152 self .arguments = {}
11501153 self .returns = {}
11511154 self .declarations = {}
You can’t perform that action at this time.
0 commit comments