Skip to content

Commit

Permalink
fix: update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoAcosta committed Nov 6, 2024
1 parent 0e0b4d0 commit 1e33cfa
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions script/deploy/DeploySingle.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ contract DeploySingle is Script {
function deployQuestion(
address spaceAddress,
address pointsAddress,
DeploySingleArgs.QuestionArgs memory args
DeploySingleArgs.QuestionArgs memory args,
address plasaAddress
) private returns (FixedQuestion) {
return
new FixedQuestion(
Expand All @@ -25,7 +26,8 @@ contract DeploySingle is Script {
args.tags,
args.deadline,
args.optionTitles,
args.optionDescriptions
args.optionDescriptions,
plasaAddress
);
}

Expand Down Expand Up @@ -86,8 +88,8 @@ contract DeploySingle is Script {
vm.startBroadcast(superAdminPrivateKey);

// Deploy Questions
FixedQuestion question1 = deployQuestion(address(space), address(0), args.question1);
FixedQuestion question2 = deployQuestion(address(space), address(0), args.question2);
FixedQuestion question1 = deployQuestion(address(space), address(0), args.question1, address(plasa));
FixedQuestion question2 = deployQuestion(address(space), address(0), args.question2, address(plasa));

// Add questions to space
space.addQuestion(address(question1));
Expand Down

0 comments on commit 1e33cfa

Please sign in to comment.