diff --git a/crates/database/interface/src/async_db.rs b/crates/database/interface/src/async_db.rs index 6e35dac440..2561e7c642 100644 --- a/crates/database/interface/src/async_db.rs +++ b/crates/database/interface/src/async_db.rs @@ -171,7 +171,7 @@ impl Database for WrapDatabaseAsync { /// Gets storage value of account by its id. /// - /// Default implementation is to call [`DatabaseRef::storage_ref`] method. + /// Wraps [`DatabaseAsync::storage_by_account_id_async`] in a blocking call. #[inline] fn storage_by_account_id( &mut self, diff --git a/crates/database/src/states/bundle_state.rs b/crates/database/src/states/bundle_state.rs index 8c28c7ff72..8982706132 100644 --- a/crates/database/src/states/bundle_state.rs +++ b/crates/database/src/states/bundle_state.rs @@ -397,7 +397,7 @@ impl BundleRetention { /// /// This is needed to decide if there were any changes to the account. /// -/// Reverts and created when TransitionState is applied to BundleState. +/// Changes are applied and reverts are created when TransitionState is applied to BundleState. /// /// And can be used to revert BundleState to the state before transition. #[derive(Default, Clone, Debug, PartialEq, Eq)] diff --git a/crates/database/src/states/state.rs b/crates/database/src/states/state.rs index 809b82d67d..7761457b15 100644 --- a/crates/database/src/states/state.rs +++ b/crates/database/src/states/state.rs @@ -50,13 +50,13 @@ pub struct State { /// /// Build reverts and state that gets applied to the state. pub transition_state: Option, - /// After block is finishes we merge those changes inside bundle + /// After block finishes we merge those changes inside bundle /// /// Bundle is used to update database and create changesets. /// /// Bundle state can be set on initialization if we want to use preloaded bundle. pub bundle_state: BundleState, - /// Addition layer that is going to be used to fetched values before fetching values + /// Additional layer that is going to be used to fetch values before fetching values /// from database /// /// Bundle is the main output of the state execution and this allows setting previous bundle @@ -192,7 +192,7 @@ impl State { } // TODO : Make cache aware of transitions dropping by having global transition counter. - /// Takess the [`BundleState`] changeset from the [`State`], replacing it + /// Takes the [`BundleState`] changeset from the [`State`], replacing it /// with an empty one. /// /// This will not apply any pending [`TransitionState`].