fn event_builder_chain_bytes() {
        let original = EventBuilder::new()
            .with_event_type(EVENT_TYPE1.to_string())
            .with_attributes(vec![
                (ATTR1.0.to_string(), ATTR1.1.to_string()),
                (ATTR2.0.to_string(), ATTR2.1.to_string()),
            ])
            .with_data(BYTES2.to_vec())
            .build()
            .unwrap();

        let event_bytes = original.clone().into_bytes().unwrap();
        let event = Event::from_bytes(&event_bytes).unwrap();
        check_event(event);
    }
// test that the transaction receipts can be converted into bytes and back correctly
test that the transaction receipts can be converted into bytes and back correctly
test that the transaction receipts can be converted into bytes and back correctly
fn event_builder_chain_bytes() {
        let original = EventBuilder::new()
            .with_event_type(EVENT_TYPE1.to_string())
            .with_attributes(vec![
                (ATTR1.0.to_string(), ATTR1.1.to_string()),
                (ATTR2.0.to_string(), ATTR2.1.to_string()),
            ])
            .with_data(BYTES2.to_vec())
            .build()
            .unwrap();
        let event_bytes = original.clone().into_bytes().unwrap();
        let event = Event::from_bytes(&event_bytes).unwrap();
        check_event(event);
    }
fn event_builder_chain_bytes ( ) { let original = EventBuilder :: new ( ) . with_event_type ( EVENT_TYPE1 . to_string ( ) ) . with_attributes ( vec ! [ ( ATTR1 0 to_string ( ) ATTR1 1 to_string ( ) ) ( ATTR2 0 to_string ( ) ATTR2 1 to_string ( ) ) ] ) . with_data ( BYTES2 . to_vec ( ) ) . build ( ) . unwrap ( ) ; let event_bytes = original . clone ( ) . into_bytes ( ) . unwrap ( ) ; let event = Event :: from_bytes ( & event_bytes ) . unwrap ( ) ; check_event ( event ) ; }
test that the transaction receipts can be converted into bytes and back correctly
test that the transaction receipts can be converted into bytes and back correctly