diff --git a/Cargo.toml b/Cargo.toml index fdebdc8..46d32b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,7 +14,7 @@ license = "MIT" [dependencies] bitcoin_hashes = { version = "0.12", optional = true } sha2 = { version = "0.10", optional = true } -bitcoin = { version = "0.30.1", optional = true } +bitcoin = { version = "0.31.0", optional = true } redb = { version = "1.0", optional = true } hashbrown = { version = "0.14", optional = true } @@ -28,7 +28,7 @@ slice_cache = ["dep:hashbrown"] [dev-dependencies] hex_lit = { version = "0.1", features = ["rust_v_1_46"] } -bitcoin = { version = "0.30.1", features = ["rand"] } +bitcoin = { version = "0.31.0", features = ["rand"] } bitcoin-test-data = "0.2.0" tempfile = "3.4.0" diff --git a/src/bsl/tx_out.rs b/src/bsl/tx_out.rs index aa79bc6..93171d7 100644 --- a/src/bsl/tx_out.rs +++ b/src/bsl/tx_out.rs @@ -83,7 +83,7 @@ impl<'o> redb::RedbValue for TxOut<'o> { impl<'a> Into for &TxOut<'a> { fn into(self) -> bitcoin::TxOut { bitcoin::TxOut { - value: self.value(), + value: bitcoin::Amount::from_sat(self.value()), script_pubkey: self.script_pubkey().to_vec().into(), } }