From 301371fd7c4de470eee17e09100e7f6d59caeeda Mon Sep 17 00:00:00 2001 From: beer-1 Date: Sat, 18 Jan 2025 14:18:04 +0900 Subject: [PATCH] keep bug fix --- x/evm/state/statedb.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/evm/state/statedb.go b/x/evm/state/statedb.go index 3613a91..55a5243 100644 --- a/x/evm/state/statedb.go +++ b/x/evm/state/statedb.go @@ -583,7 +583,7 @@ func (s *StateDB) RevertToSnapshot(i int) { s.ctx = snap.ctx // clear the snapshots after the given id - s.snaps = s.snaps[:i] + s.snaps = s.snaps[:i+1] } // ContextOfSnapshot returns the context of the snapshot with the given id