b"ord", &[1], b"text/plain;charset=utf-8", &[], b"ord" ])]), vec![ParsedEnvelope { payload: inscription("text/plain;charset=utf-8", "ord"), ..Default::default() }], ); } #[test] fn extract_from_second_input() { assert_eq!( parse(&[Witness::new(), inscription("foo", [1; 1040]).to_witness()]), vec![ParsedEnvelope { payload: inscription("foo", [1; 1040]), input: 1, ..Default::default() }] ); } #[test] fn extract_from_second_envelope() { let mut builder = script::Builder::new(); builder = inscription("foo", [1; 100]).append_reveal_script_to_builder(builder); builder = inscription("bar", [1; 100]).append_reveal_script_to_builder(builder); assert_eq!( parse(&[Witness::from_slice(&[ builder.into_script().into_bytes(), Vec::new() ])]), vec![ ParsedEnvelope { payload: inscription("foo", [1; 100]), ..Default::default()