Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Update x/evm/keeper/context_stack.go
Browse files Browse the repository at this point in the history
  • Loading branch information
fedekunze authored Oct 8, 2021
1 parent ecf8382 commit 917674d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x/evm/keeper/context_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ func (cs *ContextStack) CommitToRevision(target int) error {
targetCtx.EventManager().EmitEvents(cs.cachedContexts[i].ctx.EventManager().Events())
if cs.cachedContexts[i].commit == nil {
return fmt.Errorf("commit function at index %d should not be nil", i)
} else {
cs.cachedContexts[i].commit()
}
cs.cachedContexts[i].commit()
}
cs.cachedContexts = cs.cachedContexts[0 : target+1]

Expand Down

0 comments on commit 917674d

Please sign in to comment.