Skip to content

Commit

Permalink
Fixed code style in get_eth_witness_bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihor Barenblat committed Apr 10, 2020
1 parent 4e43c1b commit c747c99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/models/src/node/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ impl ExecutedOperations {
.unwrap_or_default()
}

pub fn get_eth_witness_bytes(&self) -> Option<Option<Vec<u8>>> {
self.get_executed_op().map(FranklinOp::eth_witness)
pub fn get_eth_witness_bytes(&self) -> Option<Vec<u8>> {
self.get_executed_op().map(|op| op.eth_witness().unwrap_or_else(|| Vec::new()))
}
}

Expand Down

0 comments on commit c747c99

Please sign in to comment.