tomusdrw / rust-web3

Ethereum JSON-RPC multi-transport client. Rust implementation of web3 library. ENS address: rust-web3.eth
MIT License
1.45k stars 465 forks source link

issues with return value type - array of tuples #676

Open fasteater opened 1 year ago

fasteater commented 1 year ago

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?