From 1b7268d018b62fdc75103b2e00df48c9f82ad3ac Mon Sep 17 00:00:00 2001 From: Armando Dutra Date: Fri, 1 Mar 2024 09:09:25 -0300 Subject: [PATCH] fix: inputs size --- Cargo.lock | 2 +- Cargo.toml | 3 ++- src/interface/builder.rs | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a326a48c..94badb21 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -653,7 +653,7 @@ dependencies = [ [[package]] name = "rgb-core" version = "0.11.0-beta.4" -source = "git+https://github.com/RGB-WG/rgb-core?branch=master#0716f0e768df8768a6729fa62aa1cbbb56bd4003" +source = "git+https://github.com/crisdut/rgb-core?branch=feat/udc#010603f1906b6f81b25a49a29b15d366af9557c1" dependencies = [ "aluvm", "amplify", diff --git a/Cargo.toml b/Cargo.toml index 05513f80..a0c0554e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -93,4 +93,5 @@ wasm-bindgen-test = "0.3" features = [ "all" ] [patch.crates-io] -rgb-core = { git = "https://github.com/RGB-WG/rgb-core", branch = "master" } +# TODO: Remove this after merge +rgb-core = { git = "https://github.com/crisdut/rgb-core", branch = "feat/udc" } diff --git a/src/interface/builder.rs b/src/interface/builder.rs index ad66c03c..7fb25c4b 100644 --- a/src/interface/builder.rs +++ b/src/interface/builder.rs @@ -23,7 +23,7 @@ use std::collections::{BTreeMap, HashSet}; -use amplify::confinement::{Confined, TinyOrdMap, TinyOrdSet, U16}; +use amplify::confinement::{Confined, SmallOrdSet, TinyOrdMap, U16}; use amplify::{confinement, Wrapper}; use invoice::{Allocation, Amount}; use rgb::{ @@ -585,7 +585,7 @@ impl TransitionBuilder { transition_type: self.transition_type, metadata: empty!(), globals: global, - inputs: TinyOrdSet::from_iter_unsafe(self.inputs.into_keys()).into(), + inputs: SmallOrdSet::from_iter_unsafe(self.inputs.into_keys()).into(), assignments, valencies: none!(), };