Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yaziciahmet committed Aug 15, 2024
1 parent 843bf1c commit 66cfb8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crates/bitcoin-da/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ homepage = { workspace = true }
license = "MIT OR Apache-2.0"
publish = false
repository = { workspace = true }
rust-version = "1.66"
rust-version = "1.67"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 1 addition & 1 deletion crates/bitcoin-da/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ mod tests {
use bitcoin::hashes::Hash;
use bitcoin::secp256k1::Keypair;
use bitcoin::{BlockHash, CompactTarget};
use sov_rollup_interface::da::{DaVerifier, SequencerCommitment};
use sov_rollup_interface::da::DaVerifier;
use sov_rollup_interface::services::da::{DaService, SlotData};

use super::BitcoinService;
Expand Down
5 changes: 2 additions & 3 deletions crates/bitcoin-da/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,8 @@ impl DaVerifier for BitcoinVerifier {
}
}
Some(mut commitment_idx) => {
let merkle_root = merkle_tree::BitcoinMerkleTree::new(inclusion_proof.wtxids)
.root()
.expect("Merkle root should not fail");
let merkle_root =
merkle_tree::BitcoinMerkleTree::new(inclusion_proof.wtxids).root();

let input_witness_value = coinbase_tx.input[0].witness.iter().next().unwrap();

Expand Down

0 comments on commit 66cfb8d

Please sign in to comment.