Skip to content

Instantly share code, notes, and snippets.

@gnunicorn
Created September 4, 2018 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gnunicorn/89d3ba71db6ed3a683a549b8f1a2de72 to your computer and use it in GitHub Desktop.
Save gnunicorn/89d3ba71db6ed3a683a549b8f1a2de72 to your computer and use it in GitHub Desktop.
Compiling triehash v0.1.2
Compiling jsonrpc-macros v8.0.1 (https://github.com/paritytech/jsonrpc.git#98e892b0)
error[E0308]: mismatched types
--> /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/triehash-0.1.2/src/lib.rs:141:2
|
138 | fn gen_trie_root<A: AsRef<[u8]>, B: AsRef<[u8]>>(input: &[(A, B)]) -> H256 {
| ---- expected `ethereum_types::H256` because of return type
...
141 | keccak(stream.out())
| ^^^^^^^^^^^^^^^^^^^^ expected struct `ethereum_types::H256`, found struct `hash::H256`
|
= note: expected type `ethereum_types::H256`
found type `hash::H256`
note: Perhaps two different versions of crate `ethereum_types` are being used?
--> /home/ben/.cargo/registry/src/github.com-1ecc6299db9ec823/triehash-0.1.2/src/lib.rs:141:2
|
141 | keccak(stream.out())
| ^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.
error: Could not compile `triehash`.
warning: build failed, waiting for other jobs to finish...
error: build failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment