pub mod eip1559;
pub mod legacy;

/// ref. "ethers-core::types::transaction"
pub fn rlp_opt<T: rlp::Encodable>(rlp: &mut rlp::RlpStream, opt: &Option<T>) {
    if let Some(inner) = opt {
        rlp.append(inner);
    } else {
        rlp.append(&"");
    }
}
