Skip to content

Commit

Permalink
cli: does not require issue command to connect to an indexer/resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Sep 7, 2024
1 parent d8c5fd2 commit ce1b908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ use rgb::containers::{
use rgb::interface::{AmountChange, IfaceId, OutpointFilter};
use rgb::invoice::{Beneficiary, Pay2Vout, RgbInvoice, RgbInvoiceBuilder, XChainNet};
use rgb::persistence::StashReadProvider;
use rgb::resolvers::ContractIssueResolver;
use rgb::schema::SchemaId;
use rgb::validation::Validity;
use rgb::vm::RgbIsa;
Expand Down Expand Up @@ -753,8 +754,7 @@ impl Exec for RgbArgs {

let contract = builder.issue_contract()?;
let id = contract.contract_id();
let resolver = self.resolver()?;
stock.import_contract(contract, &resolver)?;
stock.import_contract(contract, &ContractIssueResolver)?;
eprintln!(
"A new contract {id} is issued and added to the stash.\nUse `export` command \
to export the contract."
Expand Down

0 comments on commit ce1b908

Please sign in to comment.