Skip to content

Commit e290871

Browse files
Save the program id arrays in memory before initialize in deployer
1 parent 7f4250f commit e290871

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

contracts/script/deploy/AlignedProofAggregationServiceDeployer.s.sol

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,14 @@ contract AlignedProofAggregationServiceDeployer is Script {
2525

2626
AlignedProofAggregationService alignedProofAggregationService = new AlignedProofAggregationService();
2727

28+
bytes32[] memory programIds = new bytes32[](2);
29+
programIds[0] = risc0AggregationProgramImageId;
30+
programIds[1] = sp1AggregationProgramVKHash;
31+
32+
uint8[] memory verifierTypes = new uint8[](2);
33+
verifierTypes[0] = uint8(IAlignedProofAggregationService.VerifierType.RISC0);
34+
verifierTypes[1] = uint8(IAlignedProofAggregationService.VerifierType.SP1);
35+
2836
ERC1967Proxy proxy = new ERC1967Proxy(
2937
address(alignedProofAggregationService),
3038
abi.encodeWithSignature(
@@ -33,8 +41,8 @@ contract AlignedProofAggregationServiceDeployer is Script {
3341
alignedAggregatorAddress,
3442
sp1VerifierAddress,
3543
risc0VerifierAddress,
36-
[risc0AggregationProgramImageId, sp1AggregationProgramVKHash],
37-
[uint8(IAlignedProofAggregationService.VerifierType.RISC0), uint8(IAlignedProofAggregationService.VerifierType.SP1)]
44+
programIds,
45+
verifierTypes
3846
)
3947
);
4048

0 commit comments

Comments
 (0)