Skip to content

Commit

Permalink
chore: use bdk 1.0.0-beta.5 (#6)
Browse files Browse the repository at this point in the history
* use bdk beta5

* revert gitignore
  • Loading branch information
darioAnongba authored Dec 9, 2024
1 parent f32e629 commit 1806fe2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ getrandom = { version = "0.2.15", features = ["js"] }
ring = { version = "0.17.8", features = ["wasm32_unknown_unknown_js"] }

# Bitcoin dependencies
bdk_wallet = { git = "https://github.com/bitcoindevkit/bdk", branch = "master" }
bdk_esplora = { git = "https://github.com/bitcoindevkit/bdk", branch = "master", default-features = false, features = [
bdk_wallet = { version = "1.0.0-beta.5" }
bdk_esplora = { version = "0.19", default-features = false, features = [
"async-https",
], optional = true }
bitcoin = { version = "0.32.4", default-features = false }
Expand All @@ -57,9 +57,7 @@ console_error_panic_hook = { version = "0.1.7", optional = true }
[dev-dependencies]
wasm-bindgen-test = "0.3.45"
web-sys = { version = "0.3.72", features = ["console"] }
bdk_wallet = { git = "https://github.com/bitcoindevkit/bdk", branch = "master", features = [
"keys-bip39",
] }
bdk_wallet = { version = "1.0.0-beta.5", features = ["keys-bip39"] }

[profile.release]
# Tell `rustc` to optimize for small code size.
Expand Down
4 changes: 2 additions & 2 deletions src/bitcoin/esplora_wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ impl EsploraWallet {
.await?;

let now = (Date::now() / 1000.0) as u64;
self.wallet.apply_update_at(update, now)?;
self.wallet.apply_update_at(update, Some(now))?;

Ok(())
}
Expand All @@ -134,7 +134,7 @@ impl EsploraWallet {
let update = self.client.sync(request, parallel_requests).await?;

let now = (Date::now() / 1000.0) as u64;
self.wallet.apply_update_at(update, now)?;
self.wallet.apply_update_at(update, Some(now))?;

Ok(())
}
Expand Down
4 changes: 2 additions & 2 deletions src/bitcoin/snap_wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ impl SnapWallet {
.await?;

let now = (Date::now() / 1000.0) as u64;
self.wallet.apply_update_at(update, now)?;
self.wallet.apply_update_at(update, Some(now))?;

Ok(())
}
Expand All @@ -144,7 +144,7 @@ impl SnapWallet {
let update = self.client.sync(request, parallel_requests).await?;

let now = (Date::now() / 1000.0) as u64;
self.wallet.apply_update_at(update, now)?;
self.wallet.apply_update_at(update, Some(now))?;

Ok(())
}
Expand Down

0 comments on commit 1806fe2

Please sign in to comment.