Skip to content

Commit

Permalink
fix migration
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvolear committed Apr 9, 2024
1 parent ffd93d2 commit ceb6e05
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion deploy/1_setup.migration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { deployPoseidons } from "./helpers/helper";
import { Registration__factory, RegistrationVerifier__factory } from "@ethers-v6";

const treeHeight = 80;
const tssSigner = "0x038D006846a3e203738cF80A02418e124203beb2";
const icaoMasterTreeMerkleRoot = "0x2c50ce3aa92bc3dd0351a89970b02630415547ea83c487befbc8b1795ea90c45";

export = async (deployer: Deployer) => {
Expand All @@ -13,7 +14,12 @@ export = async (deployer: Deployer) => {
const registration = await deployer.deploy(Registration__factory);
const registrationVerifier = await deployer.deploy(RegistrationVerifier__factory);

await registration.__Registration_init(treeHeight, await registrationVerifier.getAddress(), icaoMasterTreeMerkleRoot);
await registration.__Registration_init(
treeHeight,
tssSigner,
await registrationVerifier.getAddress(),
icaoMasterTreeMerkleRoot,
);

Reporter.reportContracts(["Registration", `${await registration.getAddress()}`]);
};

0 comments on commit ceb6e05

Please sign in to comment.