From af3204ec4746e82402f8dc886896a4bae491427d Mon Sep 17 00:00:00 2001 From: Liana Husikyan Date: Fri, 19 Jul 2019 14:57:12 +0200 Subject: [PATCH] named the callback --- src/app/tabs/runTab/contractDropdown.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/tabs/runTab/contractDropdown.js b/src/app/tabs/runTab/contractDropdown.js index 01c48a3fd0..7b215b9a18 100644 --- a/src/app/tabs/runTab/contractDropdown.js +++ b/src/app/tabs/runTab/contractDropdown.js @@ -108,12 +108,13 @@ class ContractDropdownUI { } const selectedContract = this.getSelectedContract() + const clickCallback = (valArray, inputsValues) => { + this.createInstance(inputsValues) + } const createConstructorInstance = new MultiParamManager( 0, selectedContract.getConstructorInterface(), - (valArray, inputsValues) => { - this.createInstance(inputsValues) - }, + clickCallback, selectedContract.getConstructorInputs(), 'Deploy', selectedContract.bytecodeObject