I would like to return a list of variable length as the output of a contract function. Below is my code, and it throws the error Error: Invalid u64 data size
.
fn get_vec() -> Vec<String> {
let mut v: Vec<String> = Vec::new();
let my_string = String::from_ascii_str("Fuel now.");
v.push(my_string);
return v;
}
How do I resolve this?