Skip to content

Commit

Permalink
fix: ensure we store all constructor args for the poll contract
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrlc03 committed Aug 7, 2024
1 parent 08a83b6 commit 43fe2be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/contracts/tasks/deploy/poll/01-poll.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ deployment.deployTask("poll:deploy-poll", "Deploy poll").then((task) =>
address: extContracts[1],
});

// get the empty ballot root
const emptyBallotRoot = await pollContract.emptyBallotRoot();

await Promise.all([
storage.register({
id: EContracts.Poll,
Expand All @@ -107,6 +110,7 @@ deployment.deployTask("poll:deploy-poll", "Deploy poll").then((task) =>
},
unserializedKey.asContractParam(),
extContracts,
emptyBallotRoot.toString(),
],
network: hre.network.name,
}),
Expand Down

0 comments on commit 43fe2be

Please sign in to comment.