|
19 | 19 | // See the License for the specific language governing permissions and
|
20 | 20 | // limitations under the License.
|
21 | 21 |
|
| 22 | +use std::collections::BTreeMap; |
22 | 23 | use std::ops::{BitOr, BitOrAssign};
|
23 | 24 | use std::vec;
|
24 | 25 |
|
25 | 26 | use amplify::confinement;
|
26 | 27 | use amplify::confinement::{Confined, U24};
|
27 | 28 | use bp::seals::txout::CloseMethod;
|
28 | 29 | use commit_verify::mpc;
|
29 |
| -use rgb::{OpId, Operation, OutputSeal, Transition, TransitionBundle, XAnchor}; |
| 30 | +use rgb::{ContractId, OpId, Operation, OutputSeal, Transition, TransitionBundle, XAnchor}; |
30 | 31 | use strict_encoding::{StrictDeserialize, StrictDumb, StrictSerialize};
|
31 | 32 |
|
32 | 33 | use crate::containers::XchainOutpoint;
|
@@ -190,14 +191,14 @@ impl IntoIterator for Batch {
|
190 | 191 | )]
|
191 | 192 | pub struct Fascia {
|
192 | 193 | pub anchor: XAnchor<mpc::MerkleBlock>,
|
193 |
| - pub bundles: Confined<Vec<TransitionBundle>, 1, U24>, |
| 194 | + pub bundles: Confined<BTreeMap<ContractId, TransitionBundle>, 1, U24>, |
194 | 195 | }
|
195 | 196 |
|
196 | 197 | impl StrictDumb for Fascia {
|
197 | 198 | fn strict_dumb() -> Self {
|
198 | 199 | Fascia {
|
199 | 200 | anchor: strict_dumb!(),
|
200 |
| - bundles: confined_vec![strict_dumb!()], |
| 201 | + bundles: confined_bmap![strict_dumb!() => strict_dumb!()], |
201 | 202 | }
|
202 | 203 | }
|
203 | 204 | }
|
|
0 commit comments