Renamed upgrade title

pull/2609/head
David Disu 3 years ago committed by Aniket
parent 97753e53c7
commit e7968c7211
  1. 2
      libs/remix-core-plugin/src/lib/openzeppelin-proxy.ts
  2. 2
      libs/remix-core-plugin/src/types/contract.ts
  3. 2
      libs/remix-ui/run-tab/src/lib/actions/deploy.ts
  4. 2
      libs/remix-ui/run-tab/src/lib/components/contractGUI.tsx
  5. 2
      libs/remix-ui/run-tab/src/lib/types/index.ts

@ -37,7 +37,7 @@ export class OpenZeppelinProxy extends Plugin {
const initializeInput = abi.find(node => node.name === 'initialize')
inputs[name] = {
options: [{ title: 'Deploy with Proxy', active: false }, { title: 'Upgrade Contract', active: false }],
options: [{ title: 'Deploy with Proxy', active: false }, { title: 'Upgrade with Proxy', active: false }],
initializeOptions: {
inputs: initializeInput,
initializeInputs: initializeInput ? this.blockchain.getInputs(initializeInput) : null

@ -136,7 +136,7 @@ export interface ContractABI {
};
}
export type DeployMode = 'Deploy with Proxy' | 'Upgrade Contract'
export type DeployMode = 'Deploy with Proxy' | 'Upgrade with Proxy'
export type DeployOption = {
initializeInputs: string,

@ -135,7 +135,7 @@ export const createInstance = async (
args,
deployMode: DeployMode[]) => {
const isProxyDeployment = (deployMode || []).find(mode => mode === 'Deploy with Proxy')
const isContractUpgrade = (deployMode || []).find(mode => mode === 'Upgrade Contract')
const isContractUpgrade = (deployMode || []).find(mode => mode === 'Upgrade with Proxy')
const statusCb = (msg: string) => {
const log = logBuilder(msg)

@ -153,7 +153,7 @@ export function ContractGUI (props: ContractGUIProps) {
props.clickCallBack(props.initializerOptions.inputs.inputs, proxyInitializeString, ['Deploy with Proxy'])
} else if (deployState.upgrade) {
props.clickCallBack(props.funcABI.inputs, proxyAddress, ['Upgrade Contract'])
props.clickCallBack(props.funcABI.inputs, proxyAddress, ['Upgrade with Proxy'])
} else {
props.clickCallBack(props.funcABI.inputs, basicInput)
}

@ -220,7 +220,7 @@ export interface Modal {
cancelFn: () => void
}
export type DeployMode = 'Deploy with Proxy' | 'Upgrade Contract'
export type DeployMode = 'Deploy with Proxy' | 'Upgrade with Proxy'
export type DeployOption = {
initializeInputs: string,

Loading…
Cancel
Save