Hi,
I have a function declared as
pub fn get_trans_payload(trans_num_local : u32) -> Result< [u8;32], u16>
The compiler shows error
error[E0107]: wrong number of type arguments: expected 1, found 2
--> src/get_trans_helper.rs:22:69
|
22 | pub fn get_trans_payload(trans_num_local : u32) -> Result< [u8;32], u16>
| ^^^ unexpected type argument
what could be the error. I handle the function by calling as shown here
let trans_data_hash_value = get_trans_payload(trans_num_local).expect("Error");
May please give a clue.
Thanks,
S.Gopinath