![](/_next/image?url=%2Fimages%2Fgradient-top-bg.png&w=1920&q=75)
.unwrap() .index, 0x030201, ); } #[test] fn inscription_parent_with_four_byte_index_field_is_deserialized_correctly() { assert_eq!( Inscription { parent: Some(vec![ 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x01, 0x02, 0x03, 0x04, ]), ..Default::default() } .parent() .unwrap() .index, 0x04030201, ); } #[test] fn metadata_function_decodes_metadata() { assert_eq!( Inscription { metadata: Some(vec![0x44, 0, 1, 2, 3]), ..Default::default() } .metadata() .unwrap(), Value::Bytes(vec![0, 1, 2, 3]), ); } #[test] fn metadata_function_returns_none_if_no_metadata() { assert_eq!( Inscription { metadata: None, ..Default::default() } .metadata(),
Inscription #44969800
Collection
Ord
Owner
bc1p6unl7j...xfqqka3snkID
0a968bb9b3...6ee71629i0
Detail
History
Sign Up for our Newsletter
And be the first to know about any updates!