Skip to content

Commit

Permalink
fix commuting params
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 committed May 3, 2023
1 parent c43a369 commit 7a0e9b7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libs/remix-ui/run-tab/src/lib/actions/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
},
Expand All @@ -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)
},
Expand Down

0 comments on commit 7a0e9b7

Please sign in to comment.