Skip to content

Commit

Permalink
Register Linker in ContractManager
Browse files Browse the repository at this point in the history
  • Loading branch information
DimaStebaev committed May 21, 2024
1 parent 3c667f8 commit 4d013b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions proxy/migrations/deployMainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ async function main() {
try {
await contractManagerInst.setContractsAddress( "MessageProxyForMainnet", deployed.get( "MessageProxyForMainnet" )?.address);
await contractManagerInst.setContractsAddress( "CommunityPool", deployed.get( "CommunityPool" )?.address);
await contractManagerInst.setContractsAddress( "Linker", deployed.get( "Linker" )?.address);
for (const contractName of contractsToDeploy) {
const contractAddress = deployed.get(contractName);
if (contractAddress === undefined) {
Expand Down
2 changes: 1 addition & 1 deletion proxy/migrations/upgradeMainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class ImaMainnetUpgrader extends Upgrader {
contractManagerInterface,
ethers.provider
)
for (const contractName of contractsToDeploy) {
for (const contractName of contractsToDeploy.concat(["Linker"])) {
try {
const contractAddress = await contractManager.getContract(contractName);
console.log(`Address of ${contractName} is set to ${contractAddress}`);
Expand Down

0 comments on commit 4d013b2

Please sign in to comment.