Fixed code style in get_eth_witness_bytes
@@ -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()))
}
}
