From 84e00d45a04aaa78d175880722b355aaba5c64df Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Mon, 18 Dec 2023 19:02:48 +0100 Subject: [PATCH] containers: use mapping for Fascia --- src/containers/partials.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/containers/partials.rs b/src/containers/partials.rs index 9283846c..3591d89e 100644 --- a/src/containers/partials.rs +++ b/src/containers/partials.rs @@ -19,6 +19,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +use std::collections::BTreeMap; use std::ops::{BitOr, BitOrAssign}; use std::vec; @@ -26,7 +27,7 @@ use amplify::confinement; use amplify::confinement::{Confined, U24}; use bp::seals::txout::CloseMethod; use commit_verify::mpc; -use rgb::{OpId, Operation, OutputSeal, Transition, TransitionBundle, XAnchor}; +use rgb::{ContractId, OpId, Operation, OutputSeal, Transition, TransitionBundle, XAnchor}; use strict_encoding::{StrictDeserialize, StrictDumb, StrictSerialize}; use crate::containers::XchainOutpoint; @@ -190,14 +191,14 @@ impl IntoIterator for Batch { )] pub struct Fascia { pub anchor: XAnchor, - pub bundles: Confined, 1, U24>, + pub bundles: Confined, 1, U24>, } impl StrictDumb for Fascia { fn strict_dumb() -> Self { Fascia { anchor: strict_dumb!(), - bundles: confined_vec![strict_dumb!()], + bundles: confined_bmap![strict_dumb!() => strict_dumb!()], } } }