mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
Add serde-bincode-compat for receipt (#14399)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@ -193,6 +193,15 @@ impl InMemorySize for Receipt {
|
||||
|
||||
impl reth_primitives_traits::Receipt for Receipt {}
|
||||
|
||||
#[cfg(feature = "serde-bincode-compat")]
|
||||
impl reth_primitives_traits::serde_bincode_compat::SerdeBincodeCompat for Receipt {
|
||||
type BincodeRepr<'a> = Self;
|
||||
|
||||
fn as_repr(&self) -> Self::BincodeRepr<'_> {
|
||||
self.clone()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
Reference in New Issue
Block a user