rust-web3 icon indicating copy to clipboard operation
rust-web3 copied to clipboard

issues with return value type - array of tuples

Open fasteater opened this issue 2 years ago • 0 comments

Hey I am trying to query a contract returns an array of tuples

let result : Vec<(&str, &str)> = contract.query("fn_name", (), None, web3::contract::Options::default(), None).await.unwrap();

but I am getting this err

the trait `TokenizableItem` is not implemented for `(&str, &str)`

This also seems to happen when another function returns a tuple of tuples. How should I handle these?

fasteater avatar Dec 23 '22 09:12 fasteater