Include implementation address in deploys config.

pull/3187/head
Praise Disu 2 years ago
parent cf353d64b8
commit 03a84e1d3e
  1. 2
      apps/remix-ide/src/blockchain/blockchain.js
  2. 1
      libs/remix-core-plugin/src/lib/openzeppelin-proxy.ts

@ -187,6 +187,7 @@ export class Blockchain extends Plugin {
parsedDeployments.deployments.push({ parsedDeployments.deployments.push({
fork: networkInfo.currentFork, fork: networkInfo.currentFork,
proxyAddress: address, proxyAddress: address,
implementationAddress: implementationContractObject.implementationAddress,
layout: implementationContractObject.contract.object.storageLayout, layout: implementationContractObject.contract.object.storageLayout,
date: new Date().toISOString() date: new Date().toISOString()
}) })
@ -198,6 +199,7 @@ export class Blockchain extends Plugin {
deployments: [{ deployments: [{
fork: networkInfo.currentFork, fork: networkInfo.currentFork,
proxyAddress: address, proxyAddress: address,
implementationAddress: implementationContractObject.implementationAddress,
layout: implementationContractObject.contract.object.storageLayout, layout: implementationContractObject.contract.object.storageLayout,
date: new Date().toISOString() date: new Date().toISOString()
}] }]

@ -101,6 +101,7 @@ export class OpenZeppelinProxy extends Plugin {
// re-use implementation contract's ABI for UI display in udapp and change name to proxy name. // re-use implementation contract's ABI for UI display in udapp and change name to proxy name.
implementationContractObject.name = proxyName implementationContractObject.name = proxyName
implementationContractObject.implementationAddress = implAddress
this.blockchain.deployProxy(data, implementationContractObject) this.blockchain.deployProxy(data, implementationContractObject)
} }

Loading…
Cancel
Save