add comment explaining the the reason for checking the checkpointCount variable

pull/5370/head
Iuri Matias 6 years ago
parent fa3623e441
commit d4f0c63a13
  1. 1
      remix-lib/src/execution/execution-context.js

@ -221,6 +221,7 @@ function ExecutionContext () {
}
this.checkpointAndCommit = function (cb, checkpointCount) {
// due to issue https://github.com/ethereumjs/ethereumjs-vm/issues/567
if (this.vm().stateManager._checkpointCount > (checkpointCount || 0)) {
return this.vm().stateManager.commit(() => {
cb()

Loading…
Cancel
Save