fix: rename to FHEVMConfigStruct in FHEVMConfig.sol + add compiler test (#750)

This commit is contained in:
Alexandre Belhoste
2025-04-22 14:22:26 +02:00
committed by GitHub
parent 367290f93d
commit b3d5ea1b49
2 changed files with 11 additions and 4 deletions

View File

@@ -12,7 +12,7 @@ import {FHEVMConfigStruct} from "../lib/Impl.sol";
* which are deployed & maintained by Zama.
*/
library FHEVMConfig {
function getSepoliaConfig() internal pure returns (HTTPZConfigStruct memory) {
function getSepoliaConfig() internal pure returns (FHEVMConfigStruct memory) {
return
FHEVMConfigStruct({
ACLAddress: 0xFee8407e2f5e3Ee68ad77cAE98c434e637f516e5,
@@ -22,14 +22,14 @@ library FHEVMConfig {
});
}
function getEthereumConfig() internal pure returns (HTTPZConfigStruct memory) {
function getEthereumConfig() internal pure returns (FHEVMConfigStruct memory) {
/// TODO
}
}
/**
* @title SepoliaFHEVMConfig.
* @dev This contract can be inherited by a contract wishing to use the HTTPZ contracts provided by Zama
* @dev This contract can be inherited by a contract wishing to use the FHEVM contracts provided by Zama
* on the Sepolia network (chainId = 11155111).
* Other providers may offer similar contracts deployed at different addresses.
* If you wish to use them, you should rely on the instructions from these providers.
@@ -42,7 +42,7 @@ contract SepoliaFHEVMConfig {
/**
* @title EthereumFHEVMConfig.
* @dev This contract can be inherited by a contract wishing to use the HTTPZ contracts provided by Zama
* @dev This contract can be inherited by a contract wishing to use the FHEVM contracts provided by Zama
* on the Ethereum (mainnet) network (chainId = 1).
* Other providers may offer similar contracts deployed at different addresses.
* If you wish to use them, you should rely on the instructions from these providers.

View File

@@ -0,0 +1,7 @@
// SPDX-License-Identifier: BSD-3-Clause-Clear
pragma solidity ^0.8.24;
import "../config/FHEVMConfig.sol";
/// @notice A simple contract for only testing solidity compilation
contract TestSepoliaFHEVMConfig is SepoliaFHEVMConfig {}