Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit 6adb73e

Browse files
removed unnecessary task call in new upgrade and setup
1 parent fc3f11c commit 6adb73e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tasks/market/upgrade.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ task("market:upgrade:safe", "Upgrades a market's implementation")
115115
}
116116
});
117117

118-
task("markets:upgrade-and-setup", "Upgrades all pools comptroller implementations whose autoimplementatoins are on")
118+
task("markets:upgrade-and-setup", "Upgrades all markets and sets addresses provider on them")
119119
.addFlag("forceUpgrade", "If the pool upgrade should be forced")
120120
.setAction(async ({ forceUpgrade }, { viem, getChainId, deployments, run }) => {
121121
const publicClient = await viem.getPublicClient();
@@ -129,13 +129,11 @@ task("markets:upgrade-and-setup", "Upgrades all pools comptroller implementation
129129
(await deployments.get("FeeDistributor")).address as Address
130130
);
131131

132-
await run("market:set-latest");
133-
134132
const addressProvider = await viem.getContractAt(
135133
"AddressesProvider",
136134
(await deployments.get("AddressesProvider")).address as Address
137135
);
138-
const setIDTX = await addressProvider.write.setAddress("PoolLens", (await deployments.get("PoolLens")).address as Address);
136+
const setIDTX = await addressProvider.write.setAddress("PoolLens", (await deployments.get("PoolLens")).address);
139137
const receipt = await publicClient.waitForTransactionReceipt({
140138
hash: setIDTX
141139
});

0 commit comments

Comments
 (0)