pull/2260/head
David Disu 3 years ago
parent 735bfce8a2
commit 7a9fec2859
  1. 1
      libs/remix-core-plugin/src/lib/openzeppelin-proxy.ts
  2. 5
      libs/remix-lib/src/execution/txFormat.ts

@ -62,7 +62,6 @@ export class OpenZeppelinProxy extends Plugin {
async deployUUPSProxy (implAddress: string, _data: string, implementationContractObject) {
const args = [implAddress, _data]
const constructorData = await this.blockchain.getEncodedParams(args, UUPSfunAbi)
console.log('constructorData: ', constructorData)
const proxyName = 'ERC1967Proxy'
const data = {
contractABI: UUPSABI,

@ -63,8 +63,9 @@ export function encodeParams (params, funAbi, callback) {
try {
params = params.replace(/(^|,\s+|,)(\d+)(\s+,|,|$)/g, '$1"$2"$3') // replace non quoted number by quoted number
params = params.replace(/(^|,\s+|,)(0[xX][0-9a-fA-F]+)(\s+,|,|$)/g, '$1"$2"$3') // replace non quoted hex string by quoted hex string
params = JSON.stringify([params])
funArgs = JSON.parse(params)
const args = '[' + params + ']'
funArgs = JSON.parse(args)
} catch (e) {
return callback('Error encoding arguments: ' + e)
}

Loading…
Cancel
Save