Skip to content

Commit e6ff80c

Browse files
committed
chore: Deploy Lens SpokePool & Adapter
1 parent 4c78547 commit e6ff80c

7 files changed

+1625
-70
lines changed

deploy/059_deploy_lens_spokepool.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
7373
newAddress = proxy.address;
7474
}
7575

76+
// Verify the proxy + implementation contract.
77+
// @dev Verify before saving artifacts; saving artifacts seems to prevent successful verification.
78+
// It's observed that saving artifacts seems to trigger a rebuild, hardhat-zksync-verify subsequently
79+
// complains about a bytecode mismatch in the deployed artifact.
80+
await hre.run("verify:verify", { address: newAddress, constructorArguments: constructorArgs });
81+
7682
// Save the deployment manually because OZ's hardhat-upgrades packages bypasses hardhat-deploy.
7783
// See also: https://stackoverflow.com/questions/74870472
7884
const extendedArtifact = await deployments.getExtendedArtifact(contractName);
@@ -81,9 +87,6 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
8187
...extendedArtifact,
8288
};
8389
await deployments.save(contractName, deployment);
84-
85-
// Verify the proxy + implementation contract.
86-
await hre.run("verify:verify", { address: newAddress, constructorArguments: constructorArgs });
8790
};
8891

8992
module.exports = func;

deploy/064_deploy_zkstack_adapter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
* This adapter supports ZkStack L2s.
1818
*
1919
* Usage:
20-
* $ SPOKE_CHAIN_ID=37111 yarn hardhat deploy --network sepolia --tags ZkStackCustomGasTokenAdapter
20+
* $ SPOKE_CHAIN_ID=37111 yarn hardhat deploy --network sepolia --tags ZkStackAdapter
2121
*/
2222

2323
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {

0 commit comments

Comments
 (0)