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

Adds impl Tokonizable for Bytes #314

Closed
chabashilah opened this issue Jan 27, 2020 · 1 comment
Closed

Adds impl Tokonizable for Bytes #314

chabashilah opened this issue Jan 27, 2020 · 1 comment

Comments

@chabashilah
Copy link
Contributor

Hi,

I wanted to use Bytes type as a return value from smart contract calling but I got a following error.

error[E0277]: the trait bound `(web3::types::Bytes, web3::types::Bytes): web3::contract::tokens::Detokenize` is not satisfied
  --> src/bin/call_func_check_data.rs:48:40
   |
48 |     let retval:(Bytes, Bytes) = result.wait().unwrap();
   |                                        ^^^^ the trait `web3::contract::tokens::Detokenize` is not implemented for `(web3::types::Bytes, web3::types::Bytes)`
   |
   = help: the following implementations were found:
             <(A, B) as web3::contract::tokens::Detokenize>
   = note: required because of the requirements on the impl of `web3::futures::Future` for `web3::contract::QueryResult<(web3::types::Bytes, web3::types::Bytes), web3::transports::shared::Response<fn(hyper::body::chunk::Chunk) -> std::result::Result<serde_json::value::Value, web3::Error>, hyper::body::chunk::Chunk>>`

I send a PR to deal with the issule. Could you check #313 ?

@tomusdrw
Copy link
Owner

Closed via #313

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

2 participants