File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -514,7 +514,7 @@ pub trait Inventory: Deref<Target = Self::Stash> {
514
514
) ) ) ;
515
515
}
516
516
517
- let builder = if let Some ( iimpl) = schema_ifaces. iimpls . get ( & iface. iface_id ( ) ) {
517
+ let mut builder = if let Some ( iimpl) = schema_ifaces. iimpls . get ( & iface. iface_id ( ) ) {
518
518
TransitionBuilder :: blank_transition ( iface. clone ( ) , schema. clone ( ) , iimpl. clone ( ) )
519
519
. expect ( "internal inconsistency" )
520
520
} else {
@@ -528,6 +528,12 @@ pub trait Inventory: Deref<Target = Self::Stash> {
528
528
)
529
529
. expect ( "internal inconsistency" )
530
530
} ;
531
+ let tags = self . contract_asset_tags ( contract_id) ?;
532
+ for ( assignment_type, asset_tag) in tags {
533
+ builder = builder
534
+ . add_asset_tag_raw ( * assignment_type, * asset_tag)
535
+ . expect ( "tags are in bset and must not repeat" ) ;
536
+ }
531
537
532
538
Ok ( builder)
533
539
}
You can’t perform that action at this time.
0 commit comments