Open
Description
Describe the feature
for example as the parameters of internal functions, we need to at least pass the test below
#[zink::call]
fn method_with_fix_array_as_parameter(addresses: [Address; 3]) {
if addresses[0].ne(Address::from(0)) {
revert!("The first address is not matched")
}
if addresses[1].ne(Address::from(1)) {
revert!("The second address is not matched");
}
if addresses[2].ne(Address::from(2)) {
revert!("The third address is not matched");
}
}
Solution
do not need to store the length of fixed array since it has been declared in function signatures
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status