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) },