Skip to content

issues with return value type - array of tuples #676

@fasteater

Description

@fasteater

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions