diff --git a/Cargo.lock b/Cargo.lock index 576fe85..40e2a9a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1473,7 +1473,7 @@ dependencies = [ [[package]] name = "rgb-core" version = "0.11.0-beta.1" -source = "git+https://github.com/RGB-WG/rgb-core?branch=v0.11#f009e51734f8f258d75a51aac4cdc68e13732c9d" +source = "git+https://github.com/RGB-WG/rgb-core?branch=v0.11#d80b3f516994d005578c010d22362d9a25783d23" dependencies = [ "aluvm", "amplify", @@ -1536,7 +1536,7 @@ dependencies = [ [[package]] name = "rgb-std" version = "0.11.0-beta.1" -source = "git+https://github.com/RGB-WG/rgb-std?branch=v0.11#8ce111c9c66550d630d31e34be8e4fb2239318d7" +source = "git+https://github.com/RGB-WG/rgb-std?branch=v0.11#5025eed9c1f25a80f7759f0a4b07265aa4e666ce" dependencies = [ "amplify", "baid58", diff --git a/cli/src/command.rs b/cli/src/command.rs index ac6eeb8..a315224 100644 --- a/cli/src/command.rs +++ b/cli/src/command.rs @@ -19,7 +19,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -use std::collections::HashSet; use std::fs; use std::path::PathBuf; use std::str::FromStr; @@ -31,10 +30,10 @@ use rgb_rt::{DescriptorRgb, RuntimeError}; use rgbinvoice::{InvoiceState, RgbInvoice, RgbTransport}; use rgbstd::containers::{Bindle, Transfer, UniversalBindle}; use rgbstd::contract::{ContractId, GenesisSeal, GraphSeal, StateType}; -use rgbstd::interface::{AssetTagExt, ContractBuilder, FilterExclude, SchemaIfaces}; +use rgbstd::interface::{ContractBuilder, FilterExclude, SchemaIfaces}; use rgbstd::persistence::{Inventory, Stash}; use rgbstd::schema::SchemaId; -use rgbstd::{AssetTag, AssignmentType, SealDefinition}; +use rgbstd::SealDefinition; use seals::txout::{CloseMethod, ExplicitSeal, TxPtr}; use strict_types::encoding::{FieldName, TypeName}; use strict_types::StrictVal; @@ -377,10 +376,6 @@ impl Exec for RgbArgs { .as_mapping() .expect("invalid YAML root-level structure"); - let contract_domain = code - .get("domain") - .map(|val| val.as_str().expect("domain name must be a string")); - if let Some(globals) = code.get("globals") { for (name, val) in globals .as_mapping() @@ -425,7 +420,6 @@ impl Exec for RgbArgs { } } - let mut asset_tags: HashSet = empty!(); if let Some(assignments) = code.get("assignments") { for (name, val) in assignments .as_mapping() @@ -469,24 +463,6 @@ impl Exec for RgbArgs { match state_schema.state_type() { StateType::Void => todo!(), StateType::Fungible => { - let assignment_type = - iface_impl.assignments_type(&field_name).expect( - "unknown assignment name, which is absent from the \ - interface implementation", - ); - if !asset_tags.contains(&assignment_type) { - let asset_tag = AssetTag::new_random( - contract_domain.expect( - "when issuing contracts using fungible state it is \ - required to provide a contract domain", - ), - assignment_type, - ); - asset_tags.insert(assignment_type); - builder = builder - .add_asset_tag(field_name.clone(), asset_tag) - .expect("unable to register asset tag"); - } let amount = assign .get("amount") .expect("owned state must be a fungible amount") diff --git a/examples/rgb20-demo.yaml b/examples/rgb20-demo.yaml index d0b58f8..dddc475 100644 --- a/examples/rgb20-demo.yaml +++ b/examples/rgb20-demo.yaml @@ -1,5 +1,4 @@ interface: RGB20 -domain: examples.lnp-bp.org/rgb-wallet/RGB20 globals: spec: