You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for example as the parameters of internal functions, we need to at least pass the test below
#[zink::call]fnmethod_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
The text was updated successfully, but these errors were encountered:
Describe the feature
for example as the parameters of internal functions, we need to at least pass the test below
Solution
do not need to store the length of fixed array since it has been declared in function signatures
The text was updated successfully, but these errors were encountered: