Skip to content

Commit

Permalink
No need to deposit event each block (polkadot-evm#604)
Browse files Browse the repository at this point in the history
  • Loading branch information
boundless-forest authored Mar 16, 2022
1 parent bfa4c7b commit 4258b30
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions frame/base-fee/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ pub mod pallet {
.checked_div(U256::from(1_000_000))
.unwrap_or(U256::zero());
*bf = bf.saturating_add(U256::from(increase));
Self::deposit_event(Event::NewBaseFeePerGas(*bf));
} else {
Self::deposit_event(Event::BaseFeeOverflow);
}
Expand All @@ -194,7 +193,6 @@ pub mod pallet {
.checked_div(U256::from(1_000_000))
.unwrap_or(U256::zero());
*bf = bf.saturating_sub(U256::from(decrease));
Self::deposit_event(Event::NewBaseFeePerGas(*bf));
} else {
Self::deposit_event(Event::BaseFeeOverflow);
}
Expand Down

0 comments on commit 4258b30

Please sign in to comment.