Skip to content

Commit

Permalink
Clarify added reads on on_initialize
Browse files Browse the repository at this point in the history
  • Loading branch information
elfedy committed Apr 9, 2024
1 parent a3475f4 commit 50b2f2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pallets/emergency-para-xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ pub mod pallet {
impl<T: Config> Hooks<BlockNumberFor<T>> for Pallet<T> {
fn on_initialize(_: BlockNumberFor<T>) -> Weight {
// Account for 1 read and 1 write to `Mode`
// during `check_associated_relay_number`
T::DbWeight::get().reads_writes(1, 1)
}
}
Expand Down

0 comments on commit 50b2f2a

Please sign in to comment.