fix commuting params

pull/5370/head
yann300 2 years ago committed by Aniket
parent 22bb2f274d
commit 4ae57df687
  1. 8
      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)
},

Loading…
Cancel
Save