Skip to content

Commit a132bf0

Browse files
authored
fix(aggregation_mode): invert variables order and add setter for risc0 contract (#1901)
1 parent 0656d2b commit a132bf0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

contracts/src/core/AlignedProofAggregationService.sol

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ contract AlignedProofAggregationService is
2424
/// https://docs.succinct.xyz/onchain-verification/contract-addresses
2525
address public sp1VerifierAddress;
2626

27+
/// @notice The address of the Wallet that is allowed to call the verify function.
28+
address public alignedAggregatorAddress;
29+
2730
/// @notice The address of the Risc0 verifier contract
2831
/// @dev See supported verifier here:
2932
/// https://dev.risczero.com/api/blockchain-integration/contracts/verifier#contract-addresses
3033
address public risc0VerifierAddress;
3134

32-
/// @notice The address of the Wallet that is allowed to call the verify function.
33-
address public alignedAggregatorAddress;
34-
3535
/// @notice whether we are in dev mode or not
3636
/// if the sp1 verifier address is set to this address, then we skip verification
3737
address public constant VERIFIER_MOCK_ADDRESS = address(0xFF);
@@ -109,4 +109,10 @@ contract AlignedProofAggregationService is
109109
}
110110
_;
111111
}
112+
113+
/// @notice Sets the address of the Risc0 verifier contract
114+
/// @param _risc0VerifierAddress The new address for the Risc0 verifier contract
115+
function setRisc0VerifierAddress(address _risc0VerifierAddress) external onlyOwner {
116+
risc0VerifierAddress = _risc0VerifierAddress;
117+
}
112118
}

0 commit comments

Comments
 (0)