@@ -23,7 +23,7 @@ use std::ops::{BitOr, BitOrAssign};
23
23
use std:: vec;
24
24
25
25
use amplify:: confinement;
26
- use amplify:: confinement:: { Confined , MediumVec , U24 } ;
26
+ use amplify:: confinement:: { Confined , U24 } ;
27
27
use bp:: seals:: txout:: CloseMethod ;
28
28
use commit_verify:: mpc;
29
29
use rgb:: { OpId , Operation , OutputSeal , Transition , TransitionBundle , XAnchor } ;
@@ -160,7 +160,7 @@ impl BatchItem {
160
160
) ]
161
161
pub struct Batch {
162
162
pub main : BatchItem ,
163
- pub blanks : MediumVec < BatchItem > ,
163
+ pub blanks : Confined < Vec < BatchItem > , 0 , { U24 - 1 } > ,
164
164
}
165
165
166
166
impl StrictSerialize for Batch { }
@@ -181,7 +181,7 @@ impl IntoIterator for Batch {
181
181
/// of finalized state transitions (under multiple contracts), packed into
182
182
/// bundles, and anchored to a single layer 1 transaction.
183
183
#[ derive( Clone , PartialEq , Eq , Debug ) ]
184
- #[ derive( StrictType , StrictDumb , StrictEncode , StrictDecode ) ]
184
+ #[ derive( StrictType , StrictEncode , StrictDecode ) ]
185
185
#[ strict_type( lib = LIB_NAME_RGB_STD ) ]
186
186
#[ cfg_attr(
187
187
feature = "serde" ,
@@ -190,8 +190,16 @@ impl IntoIterator for Batch {
190
190
) ]
191
191
pub struct Fascia {
192
192
pub anchor : XAnchor < mpc:: MerkleBlock > ,
193
- pub bundles : MediumVec < TransitionBundle > ,
193
+ pub bundles : Confined < Vec < TransitionBundle > , 1 , U24 > ,
194
194
}
195
195
196
+ impl StrictDumb for Fascia {
197
+ fn strict_dumb ( ) -> Self {
198
+ Fascia {
199
+ anchor : strict_dumb ! ( ) ,
200
+ bundles : confined_vec ! [ strict_dumb!( ) ] ,
201
+ }
202
+ }
203
+ }
196
204
impl StrictSerialize for Fascia { }
197
205
impl StrictDeserialize for Fascia { }
0 commit comments