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 fe2041b commit 71b8886Copy full SHA for 71b8886
crates/evm/core/src/state_snapshot.rs
@@ -1,7 +1,6 @@
1
//! Support for snapshotting different states
2
3
use alloy_primitives::{U256, map::HashMap};
4
-use std::ops::Add;
5
6
/// Represents all state snapshots
7
#[derive(Clone, Debug)]
@@ -30,7 +29,7 @@ impl<T> StateSnapshots<T> {
30
29
let snapshot_state = self.state_snapshots.remove(&id);
31
32
// Revert all state snapshots taken after the state snapshot with the `id`
33
- let mut to_revert = id.add(U256::from(1));
+ let mut to_revert = id + U256::from(1);
34
while to_revert < self.id {
35
self.state_snapshots.remove(&to_revert);
36
to_revert += U256::from(1);
0 commit comments