Skip to content

Commit a84bc4a

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

11 files changed

+1634
-77
lines changed

deploy/059_deploy_lens_spokepool.ts

Lines changed: 6 additions & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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) {

deployments/deployments.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"AlephZero_Adapter": { "address": "0x6F4083304C2cA99B077ACE06a5DcF670615915Af", "blockNumber": 21131132 },
3232
"Ink_Adapter": { "address": "0x7e90a40c7519b041a7df6498fbf5662e8cfc61d2", "blockNumber": 21438590 },
3333
"Cher_Adapter": { "address": "0x0c9d064523177dBB55CFE52b9D0c485FBFc35FD2", "blockNumber": 21597341 },
34-
"Lens_Adapter": { "address": "0x63AC22131eD457aeCbD63e6c4C7eeC7BBC74fF1F", "blockNumber": 22167069 },
34+
"Lens_Adapter": { "address": "0x9a177ab7a1021def838f018bd09dbad7addb728e", "blockNumber": 22367550 },
3535
"DoctorWho_Adapter": { "address": "0xFADcC43096756e1527306FD92982FEbBe3c629Fa", "blockNumber": 21773451 }
3636
},
3737
"10": {

0 commit comments

Comments
 (0)