Skip to content

Commit

Permalink
Update with review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
brianp committed Jun 7, 2022
1 parent 1268449 commit c2a4d82
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -792,10 +792,10 @@ impl wallet_server::Wallet for WalletGrpcServer {
"Committee definition transaction: {:?}", transaction
);

let committee_size = match side_chain_features.constitution {
Some(constitution) => constitution.validator_committee.members().len(),
None => 0,
};
let committee_size = side_chain_features
.constitution
.and_then(|con| con.validator_committee.members().len())
.unwrap_or(0);

let message = format!(
"Committee definition for {} members for {:?}",
Expand Down

0 comments on commit c2a4d82

Please sign in to comment.