add bytes[] and address[]
@@ -105,6 +105,9 @@ type_mapping = {
'string' :'BCHAR*',
'bytes' :'BUINT8*',
+ 'bytes[]' :'BoatFieldVariable*',
+ 'address[]' :'BoatAddress*',
+
#Fixed-length types
'address' :'BoatAddress',
'bool' :'BUINT8',
@@ -255,6 +258,8 @@ class CFunctionGen():
return True
elif abitype == 'bytes':
return True
+ elif abitype.find('[]') != -1:
+ return True
else:
return False
