Skip to content

Commit

Permalink
convert OperationBuilder map fields to BTreeMap
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedberg committed Feb 1, 2024
1 parent 2f42d1b commit 8c50ba5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/interface/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

use std::collections::{HashMap, HashSet};
use std::collections::{BTreeMap, HashSet};

use amplify::confinement::{Confined, TinyOrdMap, TinyOrdSet, U16};
use amplify::{confinement, Wrapper};
Expand Down Expand Up @@ -518,10 +518,10 @@ pub struct OperationBuilder<Seal: ExposedSeal> {
global: GlobalState,
rights: TinyOrdMap<AssignmentType, Confined<HashSet<BuilderSeal<Seal>>, 1, U16>>,
fungible:
TinyOrdMap<AssignmentType, Confined<HashMap<BuilderSeal<Seal>, RevealedValue>, 1, U16>>,
data: TinyOrdMap<AssignmentType, Confined<HashMap<BuilderSeal<Seal>, RevealedData>, 1, U16>>,
TinyOrdMap<AssignmentType, Confined<BTreeMap<BuilderSeal<Seal>, RevealedValue>, 1, U16>>,
data: TinyOrdMap<AssignmentType, Confined<BTreeMap<BuilderSeal<Seal>, RevealedData>, 1, U16>>,
attachments:
TinyOrdMap<AssignmentType, Confined<HashMap<BuilderSeal<Seal>, RevealedAttach>, 1, U16>>,
TinyOrdMap<AssignmentType, Confined<BTreeMap<BuilderSeal<Seal>, RevealedAttach>, 1, U16>>,
// TODO: add valencies
}

Expand Down

0 comments on commit 8c50ba5

Please sign in to comment.