11use  { 
22  super :: * , 
33  bitcoin:: { BlockHash ,  ScriptBuf } , 
4-   ord:: subcommand:: wallet:: send:: Output , 
5-   ord:: { Envelope ,  Inscription } , 
4+   ord:: { Attributes ,  Envelope ,  Inscription ,  Properties ,  subcommand:: wallet:: send:: Output } , 
65} ; 
76
87#[ test]  
@@ -180,6 +179,7 @@ fn get_inscription() {
180179      value:  Some ( 10000 ) , 
181180      parents:  Vec :: new( ) , 
182181      previous:  None , 
182+       properties:  default ( ) , 
183183      rune:  None , 
184184      sat:  Some ( Sat ( 50  *  COIN_VALUE ) ) , 
185185      satpoint:  SatPoint :: from_str( & format!( "{}:{}:{}" ,  reveal,  0 ,  0 ) ) . unwrap( ) , 
@@ -190,7 +190,7 @@ fn get_inscription() {
190190} 
191191
192192#[ test]  
193- fn  get_inscription_with_metaprotocol ( )  { 
193+ fn  get_inscription_with_metaprotocol_and_properties ( )  { 
194194  let  core = mockcore:: spawn ( ) ; 
195195  let  ord = TestServer :: spawn_with_server_args ( & core,  & [ "--index-sats" ] ,  & [ ] ) ; 
196196
@@ -199,7 +199,7 @@ fn get_inscription_with_metaprotocol() {
199199  core. mine_blocks ( 1 ) ; 
200200
201201  let  output = CommandBuilder :: new ( format ! ( 
202-     "--chain {} wallet inscribe --fee-rate 1 --file foo.txt --metaprotocol foo" , 
202+     "--chain {} wallet inscribe --fee-rate 1 --file foo.txt --metaprotocol foo --title bar " , 
203203    core. network( ) 
204204  ) ) 
205205  . write ( "foo.txt" ,  "FOO" ) 
@@ -228,14 +228,20 @@ fn get_inscription_with_metaprotocol() {
228228      content_length:  Some ( 3 ) , 
229229      content_type:  Some ( "text/plain;charset=utf-8" . to_string( ) ) , 
230230      effective_content_type:  Some ( "text/plain;charset=utf-8" . to_string( ) ) , 
231-       fee:  140 , 
231+       fee:  143 , 
232232      height:  2 , 
233233      id:  output. inscriptions[ 0 ] . id, 
234234      number:  0 , 
235235      next:  None , 
236236      value:  Some ( 10000 ) , 
237237      parents:  Vec :: new( ) , 
238238      previous:  None , 
239+       properties:  Properties  { 
240+         gallery:  Vec :: new( ) , 
241+         attributes:  Attributes  { 
242+           title:  Some ( "bar" . into( ) ) , 
243+         } , 
244+       } , 
239245      rune:  None , 
240246      sat:  Some ( Sat ( 50  *  COIN_VALUE ) ) , 
241247      satpoint:  SatPoint :: from_str( & format!( "{}:{}:{}" ,  output. reveal,  0 ,  0 ) ) . unwrap( ) , 
0 commit comments