move proxy settings to uups.ts

pull/3200/head
yann300 2 years ago
parent 282c80b032
commit 570de6e10b
  1. 10
      libs/remix-core-plugin/src/lib/compiler-fetch-and-compile.ts
  2. 4
      libs/remix-core-plugin/src/lib/constants/uups.ts

@ -4,7 +4,7 @@ import { util } from '@remix-project/remix-lib'
import { toChecksumAddress } from 'ethereumjs-util'
import { fetchContractFromEtherscan } from './helpers/fetch-etherscan'
import { fetchContractFromSourcify } from './helpers/fetch-sourcify'
import { UUPSDeployedByteCode, UUPSCompilerVersion } from './constants/uups'
import { UUPSDeployedByteCode, UUPSCompilerVersion, UUPSOptimize, UUPSRuns, UUPSEvmVersion, UUPSLanguage } from './constants/uups'
const profile = {
name: 'fetchAndCompile',
@ -52,10 +52,10 @@ export class FetchAndCompile extends Plugin {
if (codeAtAddress === '0x' + UUPSDeployedByteCode) { // proxy
const settings = {
version: UUPSCompilerVersion,
language: 'Solidity',
evmVersion: null,
optimize: false,
runs: 0
language: UUPSLanguage,
evmVersion: UUPSEvmVersion,
optimize: UUPSOptimize,
runs: UUPSRuns
}
const compilationTargets = {
'proxy.sol': { content: 'import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.8.0/contracts/proxy/ERC1967/ERC1967Proxy.sol";' }

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save