rust-web3
rust-web3 copied to clipboard
InvalidOutputType("Expected single element, got an empty list")
Hey everyone,
referencing this, obiously https://github.com/tomusdrw/rust-web3/issues/115
The contract I'm querying doesn't have explicit return value. Therefore I'm getting an error of
InvalidOutputType("Expected single element, got a list: []")
How do I type it correctly? web3::contract::Result of something?
Provide a PR for this: https://github.com/tomusdrw/rust-web3/pull/656
The no-value return type is (), have you tried that?
The no-value return type is
(), have you tried that?
Yeah, it says trait web3::contract::tokens::Tokenizable not implemented for ()
@tomusdrw anything happening?
Do you mind providing a full example? I don't think parsing an empty value into an empty list as proposed in #656 is the correct behavior.