Skip to content

Commit

Permalink
chore: update bp dependency to use StoredWallet
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jun 30, 2024
1 parent 811e6ec commit d591d70
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Cargo.lock

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

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,6 @@ serde = ["serde_crate", "serde_yaml", "bp-std/serde", "descriptors/serde", "rgb-

[package.metadata.docs.rs]
features = ["all"]

[patch.crates-io]
bp-wallet = { git = "https://github.com/BP-WG/bp-wallet", branch = "runtime" }
2 changes: 1 addition & 1 deletion cli/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl RgbArgs {
stock: Stock,
) -> Result<StoredWallet<Wallet<XpubDerivable, RgbDescr>>, WalletError> {
let stock_path = self.general.base_dir();
let wallet = self.inner.bp_runtime::<RgbDescr>(config)?;
let wallet = self.inner.bp_wallet::<RgbDescr>(config)?;
let wallet_path = wallet.path().clone();
let wallet = StoredWallet::attach(stock_path, wallet_path, stock, wallet.detach());

Expand Down
2 changes: 1 addition & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub enum WalletError {
#[cfg(feature = "fs")]
#[from]
#[from(bpwallet::LoadError)]
Bp(bpwallet::RuntimeError),
Bp(bpwallet::WalletError),

/// resolver error: {0}
#[display(doc_comments)]
Expand Down

0 comments on commit d591d70

Please sign in to comment.