Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues with return value type - array of tuples #676

Open
fasteater opened this issue Dec 23, 2022 · 0 comments
Open

issues with return value type - array of tuples #676

fasteater opened this issue Dec 23, 2022 · 0 comments

Comments

@fasteater
Copy link

fasteater commented Dec 23, 2022

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant