From 3e5d5f08123c3bc136224fc3211cddf9efd250fe Mon Sep 17 00:00:00 2001 From: Praise Disu Date: Mon, 5 Dec 2022 16:28:35 +0100 Subject: [PATCH] Include implementation address in deploys config. --- apps/remix-ide/src/blockchain/blockchain.js | 2 ++ libs/remix-core-plugin/src/lib/openzeppelin-proxy.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/apps/remix-ide/src/blockchain/blockchain.js b/apps/remix-ide/src/blockchain/blockchain.js index 8e038e29e6..c15485f98f 100644 --- a/apps/remix-ide/src/blockchain/blockchain.js +++ b/apps/remix-ide/src/blockchain/blockchain.js @@ -187,6 +187,7 @@ export class Blockchain extends Plugin { parsedDeployments.deployments.push({ fork: networkInfo.currentFork, proxyAddress: address, + implementationAddress: implementationContractObject.implementationAddress, layout: implementationContractObject.contract.object.storageLayout, date: new Date().toISOString() }) @@ -198,6 +199,7 @@ export class Blockchain extends Plugin { deployments: [{ fork: networkInfo.currentFork, proxyAddress: address, + implementationAddress: implementationContractObject.implementationAddress, layout: implementationContractObject.contract.object.storageLayout, date: new Date().toISOString() }] diff --git a/libs/remix-core-plugin/src/lib/openzeppelin-proxy.ts b/libs/remix-core-plugin/src/lib/openzeppelin-proxy.ts index 9caa46e441..b3f01c8267 100644 --- a/libs/remix-core-plugin/src/lib/openzeppelin-proxy.ts +++ b/libs/remix-core-plugin/src/lib/openzeppelin-proxy.ts @@ -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. implementationContractObject.name = proxyName + implementationContractObject.implementationAddress = implAddress this.blockchain.deployProxy(data, implementationContractObject) }