Advertisement
Guest User

Untitled

a guest
Mar 24th, 2025
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. error[E0277]: the trait bound `transaction::hash::Hash: Serialize` is not satisfied
  2. --> zebra-chain/src/transparent.rs:119:12
  3. |
  4. 119 | derive(Serialize)
  5. | ^^^^^^^^^ the trait `Serialize` is not implemented for `transaction::hash::Hash`
  6. ...
  7. 122 | /// References the transaction that contains the UTXO being spent.
  8. | ------------------------------------------------------------------ required by a bound introduced by this call
  9. |
  10. = note: for local types consider adding `#[derive(serde::Serialize)]` to your `transaction::hash::Hash` type
  11. = note: for types from other crates check whether the crate offers a `serde` feature flag
  12. = help: the following other types implement trait `Serialize`:
  13. &'a T
  14. &'a mut T
  15. ()
  16. (T,)
  17. (T0, T1)
  18. (T0, T1, T2)
  19. (T0, T1, T2, T3)
  20. (T0, T1, T2, T3, T4)
  21. and 265 others
  22. note: required by a bound in `serde::ser::SerializeStruct::serialize_field`
  23. --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/serde-1.0.217/src/ser/mod.rs:1867:21
  24. |
  25. 1865 | fn serialize_field<T>(&mut self, key: &'static str, value: &T) -> Result<(), Self::Error>
  26. | --------------- required by a bound in this associated function
  27. 1866 | where
  28. 1867 | T: ?Sized + Serialize;
  29. | ^^^^^^^^^ required by this bound in `SerializeStruct::serialize_field`
  30. = note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
  31.  
  32. Compiling abscissa_core v0.7.0
  33. For more information about this error, try `rustc --explain E0277`.
  34. error: could not compile `zebra-chain` (lib) due to 1 previous error
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement