From 8f6b6e8b243a4be1f449f5d6b0f5617a74771ab3 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 3 Feb 2020 21:50:13 +0100 Subject: [PATCH] add comment --- src/app/tabs/runTab/contractDropdown.js | 1 + src/app/tabs/runTab/recorder.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/app/tabs/runTab/contractDropdown.js b/src/app/tabs/runTab/contractDropdown.js index 346357e864..9920a680b9 100644 --- a/src/app/tabs/runTab/contractDropdown.js +++ b/src/app/tabs/runTab/contractDropdown.js @@ -205,6 +205,7 @@ class ContractDropdownUI { } getConfirmationCb (modalDialog, confirmDialog) { + // this code is the same as in recorder.js. TODO need to be refactored out const confirmationCb = (network, tx, gasEstimation, continueTxExecution, cancelCb) => { if (network.name !== 'Main') { return continueTxExecution(null) diff --git a/src/app/tabs/runTab/recorder.js b/src/app/tabs/runTab/recorder.js index ade46d336c..60495c6345 100644 --- a/src/app/tabs/runTab/recorder.js +++ b/src/app/tabs/runTab/recorder.js @@ -78,6 +78,7 @@ class RecorderUI { } getConfirmationCb (modalDialog, confirmDialog) { + // this code is the same as in contractDropdown.js. TODO need to be refactored out const confirmationCb = (network, tx, gasEstimation, continueTxExecution, cancelCb) => { if (network.name !== 'Main') { return continueTxExecution(null)