Fixed upgrade bug

pull/3415/head^2
ioedeveloper 2 years ago committed by Aniket
parent eb7c40f6c8
commit d69bcaf379
  1. 3
      libs/remix-core-plugin/src/types/contract.ts
  2. 2
      libs/remix-ui/run-tab/src/lib/components/contractDropdownUI.tsx

@ -20,7 +20,8 @@ export interface ContractData {
getConstructorInterface: () => any,
getConstructorInputs: () => any,
isOverSizeLimit: () => boolean,
metadata: any
metadata: any,
contractName?: string
}
export interface ContractAST {

@ -235,7 +235,7 @@ export function ContractDropdownUI (props: ContractDropdownProps) {
}
const isValidProxyUpgrade = (proxyAddress: string) => {
return props.isValidProxyUpgrade(proxyAddress, loadedContractData.name, loadedContractData.compiler.source, loadedContractData.compiler.data)
return props.isValidProxyUpgrade(proxyAddress, loadedContractData.contractName || loadedContractData.name, loadedContractData.compiler.source, loadedContractData.compiler.data)
}
const checkSumWarning = () => {

Loading…
Cancel
Save