Skip to content

Commit

Permalink
fix: inputs size
Browse files Browse the repository at this point in the history
  • Loading branch information
crisdut committed Mar 1, 2024
1 parent 6801aa5 commit 1b7268d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
4 changes: 2 additions & 2 deletions src/interface/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -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!(),
};
Expand Down

0 comments on commit 1b7268d

Please sign in to comment.