From 10666349b64512d07ba478235f10135a65d5b523 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 29 Apr 2021 15:11:32 +0200 Subject: [PATCH] fork selection for javascript VM --- apps/debugger/src/app/debugger-api.ts | 3 +- .../remix-ide/src/app/tabs/runTab/settings.js | 29 ++++++++++++++---- apps/remix-ide/src/blockchain/blockchain.js | 4 +++ .../src/blockchain/execution-context.js | 21 +++++++++---- apps/remix-ide/src/blockchain/providers/vm.js | 12 ++++---- libs/remix-debug/src/Ethdebugger.ts | 4 +-- libs/remix-debug/src/code/codeManager.ts | 6 ++-- libs/remix-debug/src/code/codeResolver.ts | 6 ++-- libs/remix-debug/src/code/codeUtils.ts | 27 +++++++++++++---- libs/remix-debug/src/debugger/debugger.ts | 3 +- libs/remix-debug/src/trace/traceManager.ts | 6 ++++ libs/remix-simulator/src/provider.ts | 6 ++-- libs/remix-simulator/src/vm-context.ts | 30 +++++++++---------- 13 files changed, 107 insertions(+), 50 deletions(-) diff --git a/apps/debugger/src/app/debugger-api.ts b/apps/debugger/src/app/debugger-api.ts index 0f99518e78..e1b66a3d48 100644 --- a/apps/debugger/src/app/debugger-api.ts +++ b/apps/debugger/src/app/debugger-api.ts @@ -111,7 +111,8 @@ export const DebuggerApiMixin = (Base) => class extends Base { } return null }, - debugWithGeneratedSources: false + debugWithGeneratedSources: false, + fork: 'berlin' }) return await debug.debugger.traceManager.getTrace(hash) } diff --git a/apps/remix-ide/src/app/tabs/runTab/settings.js b/apps/remix-ide/src/app/tabs/runTab/settings.js index dd726c09be..21085d9e27 100644 --- a/apps/remix-ide/src/app/tabs/runTab/settings.js +++ b/apps/remix-ide/src/app/tabs/runTab/settings.js @@ -98,9 +98,17 @@ class SettingsUI {