We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8262c9 commit 334a8a1Copy full SHA for 334a8a1
crates/evm/src/eth/block.rs
@@ -312,12 +312,17 @@ where
312
tracing::debug!("Before coinbase:{:?}", bal);
313
314
if bal.len() == 5 {
315
- bal = bal
316
- .into_iter()
317
- .filter(|a| {
318
- a.address != self.evm.block().beneficiary() && !a.balance_changes.is_empty()
319
- })
320
- .collect();
+ let beneficiary = self.evm.block().beneficiary();
+ bal =
+ bal.into_iter()
+ .filter(|a| {
+ if a.address == beneficiary {
+ !a.balance_changes.is_empty()
321
+ } else {
322
+ true
323
+ }
324
+ })
325
+ .collect();
326
tracing::debug!("After coinbase:{:?}", bal);
327
}
328
Ok((
0 commit comments