Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lmittmann committed Aug 22, 2024
1 parent 4bfae56 commit 94c94c4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion w3vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,10 @@ func (vm *VM) SetStorageAt(addr common.Address, slot, val common.Hash) {
func (vm *VM) Snapshot() *state.StateDB { return vm.db.Copy() }

// Rollback the state of the VM to the given snapshot.
func (vm *VM) Rollback(snapshot *state.StateDB) { vm.db = snapshot }
func (vm *VM) Rollback(snapshot *state.StateDB) {
vm.db = snapshot
vm.txIndex = max(vm.txIndex, uint64(snapshot.TxIndex()+1))
}

func (v *VM) buildMessage(msg *w3types.Message, skipAccChecks bool) (*core.Message, *vm.TxContext, error) {
nonce := msg.Nonce
Expand Down

0 comments on commit 94c94c4

Please sign in to comment.