Skip to content

Commit

Permalink
Merge branch 'fix/271' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Sep 17, 2024
2 parents 427931f + ba621e8 commit d42edac
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/persistence/stock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1358,11 +1358,9 @@ impl<S: StashProvider, H: StateProvider, P: IndexProvider> Stock<S, H, P> {
anchor = Some(EAnchor::new(a.mpc_proof, DbcProof::Tapret(a.dbc_proof)));
}
}
if anchor.is_none() {
if let Some(a) = opret {
if let Ok(a) = a.to_merkle_proof(contract_id) {
anchor = Some(EAnchor::new(a.mpc_proof, DbcProof::Opret(a.dbc_proof)));
}
if let Some(a) = opret {
if let Ok(a) = a.to_merkle_proof(contract_id) {
anchor = Some(EAnchor::new(a.mpc_proof, DbcProof::Opret(a.dbc_proof)));

Check warning on line 1363 in src/persistence/stock.rs

View check run for this annotation

Codecov / codecov/patch

src/persistence/stock.rs#L1361-L1363

Added lines #L1361 - L1363 were not covered by tests
}
}
let Some(anchor) = anchor else {
Expand Down

0 comments on commit d42edac

Please sign in to comment.