Skip to content

Commit

Permalink
chore: TransitionState::with_capacity -> TransitionState::single (b…
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk authored Aug 15, 2023
1 parent f4224d8 commit 49a6470
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/revm/src/db/states/bundle_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ mod tests {
};

// apply first transition
bundle_state.apply_block_substate_and_create_reverts(TransitionState::with_capacity(
bundle_state.apply_block_substate_and_create_reverts(TransitionState::single(
address,
transition.clone(),
));
Expand Down
2 changes: 1 addition & 1 deletion crates/revm/src/db/states/transition_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Default for TransitionState {

impl TransitionState {
/// Create new transition state with one transition.
pub fn with_capacity(address: B160, transition: TransitionAccount) -> Self {
pub fn single(address: B160, transition: TransitionAccount) -> Self {
let mut transitions = HashMap::new();
transitions.insert(address, transition);
TransitionState { transitions }
Expand Down

0 comments on commit 49a6470

Please sign in to comment.