Skip to content

Commit 45df2e4

Browse files
Remove base64 dependency
We don't need base64 because rust-bitcoin already exposes a version of that crate that we can use. Removing one more parallel dependency.
1 parent b3d81b4 commit 45df2e4

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ bdk-macros = "0.6"
1717
structopt = "0.3"
1818
serde_json = "1.0"
1919
log = "0.4"
20-
base64 = "0.11"
2120
zeroize = "<1.4.0"
2221
dirs-next = "2.0"
2322
env_logger = "0.7"

src/handlers.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ use bdk::{database::BatchDatabase, wallet::AddressIndex, Error, FeeRate, Keychai
2828
use structopt::StructOpt;
2929

3030
use bdk::bitcoin::consensus::encode::{deserialize, serialize, serialize_hex};
31+
use bdk::bitcoin::base64;
3132
#[cfg(any(
3233
feature = "electrum",
3334
feature = "esplora",

src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ pub(crate) fn new_blockchain(
282282
&Secp256k1::new(),
283283
)?;
284284

285-
let rpc_url = "http://".to_string() + &url;
285+
let rpc_url = "http://".to_string() + url;
286286

287287
let rpc_config = RpcConfig {
288288
url: rpc_url,
@@ -295,7 +295,7 @@ pub(crate) fn new_blockchain(
295295
AnyBlockchainConfig::Rpc(rpc_config)
296296
};
297297

298-
Ok(AnyBlockchain::from_config(&config)?)
298+
AnyBlockchain::from_config(&config)
299299
}
300300

301301
/// Create a new wallet from given wallet configuration options

0 commit comments

Comments
 (0)