From a5bad52c32fff26bf3306cb40f18acb4eba7d646 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 17 Jun 2021 11:06:16 +0000 Subject: [PATCH 1/2] Bump rand_chacha from 0.3.0 to 0.3.1 Bumps [rand_chacha](https://github.com/rust-random/rand) from 0.3.0 to 0.3.1. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/rand_chacha-0.3.0...rand_chacha-0.3.1) --- updated-dependencies: - dependency-name: rand_chacha dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- Cargo.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6b1435c5..02083d55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -943,7 +943,7 @@ version = "0.6.2-alpha.0" source = "git+https://github.com/LLFourn/secp256kfun#84134daf34845434d7f38cdae7ffc31730a3b1e9" dependencies = [ "bincode", - "rand_chacha 0.3.0", + "rand_chacha 0.3.1", "secp256kfun", "serde", "sigma_fun", @@ -2808,7 +2808,7 @@ dependencies = [ "num-traits", "quick-error 2.0.0", "rand 0.8.3", - "rand_chacha 0.3.0", + "rand_chacha 0.3.1", "rand_xorshift 0.3.0", "regex-syntax", "rusty-fork", @@ -2969,7 +2969,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e" dependencies = [ "libc", - "rand_chacha 0.3.0", + "rand_chacha 0.3.1", "rand_core 0.6.2", "rand_hc 0.3.0", ] @@ -2996,9 +2996,9 @@ dependencies = [ [[package]] name = "rand_chacha" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0d" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", "rand_core 0.6.2", @@ -3958,7 +3958,7 @@ dependencies = [ "proptest", "qrcode", "rand 0.8.3", - "rand_chacha 0.3.0", + "rand_chacha 0.3.1", "reqwest", "rust_decimal", "rust_decimal_macros", From 957787583489487d609adaed8a13391aa587dc3d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 17 Jun 2021 11:06:14 +0000 Subject: [PATCH 2/2] Bump bdk from 0.7.0 to 0.8.0 Bumps [bdk](https://github.com/bitcoindevkit/bdk) from 0.7.0 to 0.8.0. - [Release notes](https://github.com/bitcoindevkit/bdk/releases) - [Changelog](https://github.com/bitcoindevkit/bdk/blob/master/CHANGELOG.md) - [Commits](https://github.com/bitcoindevkit/bdk/compare/v0.7.0...v0.8.0) --- updated-dependencies: - dependency-name: bdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- Cargo.lock | 4 ++-- swap/Cargo.toml | 2 +- swap/src/bitcoin/wallet.rs | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6b1435c5..8c7182a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -237,9 +237,9 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd" [[package]] name = "bdk" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d85959e6883d0286e39e89aa7791b2edc2b8712f0f7152fda43b692c4db96c06" +checksum = "05d7fee1aedf8935ba1e2c9aeee640d1b9754da1b64f30ad47e8b8e2b7904ec0" dependencies = [ "async-trait", "bdk-macros", diff --git a/swap/Cargo.toml b/swap/Cargo.toml index 019abb47..8c6a709f 100644 --- a/swap/Cargo.toml +++ b/swap/Cargo.toml @@ -15,7 +15,7 @@ async-trait = "0.1" atty = "0.2" backoff = { version = "0.3", features = [ "tokio" ] } base64 = "0.13" -bdk = "0.7" +bdk = "0.8" big-bytes = "1" bitcoin = { version = "0.26", features = [ "rand", "use-serde" ] } bmrng = "0.5" diff --git a/swap/src/bitcoin/wallet.rs b/swap/src/bitcoin/wallet.rs index e99a1742..1447930c 100644 --- a/swap/src/bitcoin/wallet.rs +++ b/swap/src/bitcoin/wallet.rs @@ -282,7 +282,8 @@ where .lock() .await .get_address(AddressIndex::New) - .context("Failed to get new Bitcoin address")?; + .context("Failed to get new Bitcoin address")? + .address; Ok(address) }