Skip to content

Commit

Permalink
unwrap_or_default
Browse files Browse the repository at this point in the history
  • Loading branch information
CeciliaZ030 committed May 22, 2024
1 parent bfb2ece commit 4578bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/protocol_instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ impl ProtocolInstance {
.chain_spec
.verifier_address
.get(&proof_type)
.unwrap_or(&Some(Address::default()))
.unwrap_or(&None)
.clone()
.unwrap();
.unwrap_or_default();

let pi = ProtocolInstance {
transition: Transition {
Expand Down

0 comments on commit 4578bb0

Please sign in to comment.