Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/deploy/campaign/staking-system-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { getStaking721DeployConfig } from "../missions/staking-erc721/staking721


export const getStaking20SystemConfig = async (
deployAdmin : HardhatEthersSigner,
votingAdmin : HardhatEthersSigner,
stakingAdmin : HardhatEthersSigner,
deployAdmin ?: HardhatEthersSigner,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is deployAdmin optional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because #getBaseZModulesConfig can get him itself as first passed signer.

stakingAdmin ?: HardhatEthersSigner,
) => {
const baseConfig = await getBaseZModulesConfig({ deployAdmin });

Expand All @@ -21,9 +21,9 @@ export const getStaking20SystemConfig = async (
};

export const getStaking721SystemConfig = async (
deployAdmin : HardhatEthersSigner,
votingAdmin : HardhatEthersSigner,
stakingAdmin : HardhatEthersSigner,
deployAdmin ?: HardhatEthersSigner,
stakingAdmin ?: HardhatEthersSigner,
) => {
const baseConfig = await getBaseZModulesConfig({ deployAdmin });

Expand Down