Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
Signed-off-by: deniallugo <[email protected]>
  • Loading branch information
Deniallugo committed Jul 23, 2021
1 parent 25c701e commit b83038d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/bin/zksync_api/src/fee_ticker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ impl<API: FeeTickerAPI, INFO: FeeTickerInfo, WATCHER: TokenWatcher> FeeTicker<AP
(fee_type, gas_tx_amount, op_chunks)
}
async fn calculate_fast_withdrawal_gas_cost(&mut self, chunk_size: usize) -> BigUint {
let mut future_blocks = self.info.blocks_in_future_aggregated_operations().await;
let future_blocks = self.info.blocks_in_future_aggregated_operations().await;
let remaining_pending_chunks = self.info.remaining_chunks_in_pending_block().await;
let additional_cost = remaining_pending_chunks.map_or(0, |chunks| {
if chunk_size > chunks {
Expand Down
2 changes: 1 addition & 1 deletion core/bin/zksync_api/src/fee_ticker/ticker_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ impl FeeTickerInfo for TickerInfo {
.load_pending_block()
.await
.expect("Error loading pending block");
block.map_or(None, |block| Some(block.chunks_left))
block.map(|block| block.chunks_left)
}
}

0 comments on commit b83038d

Please sign in to comment.