Skip to content

Commit 2ccf360

Browse files
committed
fix: invert variables order
feat: add risc0 contract setter
1 parent 83576e3 commit 2ccf360

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

contracts/src/core/AlignedProofAggregationService.sol

Lines changed: 10 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,11 @@ 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+
require(_risc0VerifierAddress != address(0), "Invalid verifier address");
117+
risc0VerifierAddress = _risc0VerifierAddress;
118+
}
112119
}

0 commit comments

Comments
 (0)