From b778f28ecec9c1c3ff1c042991cec7ff04d464d5 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Wed, 17 Jul 2019 08:40:23 -0400 Subject: [PATCH] re-add revert on context change --- remix-lib/src/execution/execution-context.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/remix-lib/src/execution/execution-context.js b/remix-lib/src/execution/execution-context.js index c352519826..9aa3d34efa 100644 --- a/remix-lib/src/execution/execution-context.js +++ b/remix-lib/src/execution/execution-context.js @@ -186,6 +186,9 @@ function ExecutionContext () { if (context === 'vm') { executionContext = context + vms.constantinople.stateManager.revert(() => { + vms.constantinople.stateManager.checkpoint(() => {}) + }) self.event.trigger('contextChanged', ['vm']) return cb() }