From 4ae57df687ce69a5e070653feafb59b7b31ed271 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 3 May 2023 10:07:23 +0200 Subject: [PATCH] fix commuting params --- libs/remix-ui/run-tab/src/lib/actions/deploy.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/remix-ui/run-tab/src/lib/actions/deploy.ts b/libs/remix-ui/run-tab/src/lib/actions/deploy.ts index 50be404b4a..e33121f8e2 100644 --- a/libs/remix-ui/run-tab/src/lib/actions/deploy.ts +++ b/libs/remix-ui/run-tab/src/lib/actions/deploy.ts @@ -190,11 +190,11 @@ export const createInstance = async ( const compilerContracts = getCompilerContracts(plugin) const confirmationCb = getConfirmationCb(plugin, dispatch, mainnetPrompt) - args = !isProxyDeployment && !isContractUpgrade ? args : '' - const overSize = await selectedContract.isOverSizeLimit(args) + const currentParams = !isProxyDeployment && !isContractUpgrade ? args : '' + const overSize = await selectedContract.isOverSizeLimit(currentParams) if (overSize.overSizeEip170 || overSize.overSizeEip3860) { return dispatch(displayNotification('Contract code size over limit', isOverSizePrompt(overSize), 'Force Send', 'Cancel', () => { - deployContract(plugin, selectedContract, args, contractMetadata, compilerContracts, { + deployContract(plugin, selectedContract, currentParams, contractMetadata, compilerContracts, { continueCb: (error, continueTxExecution, cancelCb) => { continueHandler(dispatch, gasEstimationPrompt, error, continueTxExecution, cancelCb) }, @@ -210,7 +210,7 @@ export const createInstance = async ( return terminalLogger(plugin, log) })) } - deployContract(plugin, selectedContract, args, contractMetadata, compilerContracts, { + deployContract(plugin, selectedContract, currentParams, contractMetadata, compilerContracts, { continueCb: (error, continueTxExecution, cancelCb) => { continueHandler(dispatch, gasEstimationPrompt, error, continueTxExecution, cancelCb) },