Files
reth/crates/primitives/src/log.rs
Matthias Seitz 2e19f94048 feat: impl rlp for receipt (#83)
* feat: impl rlp for receipt

* fix: change to bloom

* chore: rustfmt
2022-10-17 07:13:02 -07:00

16 lines
454 B
Rust

use crate::{Address, H256};
use reth_codecs::main_codec;
use reth_rlp::{RlpDecodable, RlpEncodable};
/// Ethereum Log
#[main_codec]
#[derive(Clone, Debug, PartialEq, Eq, RlpDecodable, RlpEncodable)]
pub struct Log {
/// Contract that emitted this log.
pub address: Address,
/// Topics of the log. The number of logs depend on what `LOG` opcode is used.
pub topics: Vec<H256>,
/// Arbitrary length data.
pub data: bytes::Bytes,
}