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

InvalidOutputType("Expected single element, got a list") #115

Closed
neuhausler opened this issue Apr 20, 2018 · 1 comment
Closed

InvalidOutputType("Expected single element, got a list") #115

neuhausler opened this issue Apr 20, 2018 · 1 comment

Comments

@neuhausler
Copy link

The contract I'm querying returns a fixed array.

Result::unwrap()on anErr` value: Error(InvalidOutputType("Expected single element, got a list: [Bool(true), Uint(0x5ada606a), Uint(0x0)]")

I assume that is supported via the FixedArray macro? What signature, type definition has to be used for the query call to trigger/handle this?

@neuhausler
Copy link
Author

figured it out .. would be nice to have more examples
let result: (bool, u64, u64) = contract.query ...

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