From 202e580e424b4564680eb34a53dc43cf24bd941d Mon Sep 17 00:00:00 2001 From: Jeff Bencin Date: Tue, 11 Apr 2023 09:38:21 -0400 Subject: [PATCH] chore: Change `filter_map()` that never filtered anything to `map()` --- src/chainstate/stacks/db/blocks.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chainstate/stacks/db/blocks.rs b/src/chainstate/stacks/db/blocks.rs index f18c9a0d8..d0a2dd671 100644 --- a/src/chainstate/stacks/db/blocks.rs +++ b/src/chainstate/stacks/db/blocks.rs @@ -4655,7 +4655,7 @@ impl StacksChainState { clarity_tx.with_temporary_cost_tracker(LimitedCostTracker::new_free(), |clarity_tx| { operations .into_iter() - .filter_map(|deposit_stx_op| { + .map(|deposit_stx_op| { let DepositStxOp { txid: _, amount, @@ -4675,7 +4675,7 @@ impl StacksChainState { // deposits increment the STX liquidity in the layer 2 clarity_tx.increment_ustx_liquid_supply(amount); - Some(StacksTransactionReceipt { + StacksTransactionReceipt { transaction: TransactionOrigin::Burn(deposit_stx_op.into()), events: vec![result], result: Value::okay_true(), @@ -4685,7 +4685,7 @@ impl StacksChainState { execution_cost: ExecutionCost::zero(), microblock_header: None, tx_index: 0, - }) + } }) .collect() });