Generate correct metadata for non-fixed length arrays on Substrate
This generates the correct ABI for Solidity like:
contract int_array {
function test(int64[] arr) public returns (int64) {
int64 total = 0;
for (uint32 i = 0; i < arr.length; i++) {
total += arr[i];
}
return total;
}
}
@@ -503,7 +503,10 @@ fn ty_to_abi(ty: &ast::Type, ns: &ast::Namespace, registry: &mut Registry) -> Pa
display_name: vec![],
}
} else {
- // FIXME:
+ param_ty = ParamType {
+ ty: registry.builtin_slice_type(param_ty.ty),
+ display_name: vec![],
+ }
}
}
