Skip to content

Commit fa0b9ef

Browse files
committed
fix(host-contracts): use renamed constants after UPPER_SNAKE_CASE refactor
1 parent c90cbfb commit fa0b9ef

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

host-contracts/contracts/FHEVMExecutor.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ contract FHEVMExecutor is UUPSUpgradeableEmptyProxy, FHEEvents, ACLOwnable {
677677
if (values.length > maxSize) revert FHECollectionSizeInvalid(values.length, maxSize);
678678

679679
result = _naryOp(Operators.fheSum, values, resultType);
680-
hcuLimit.checkHCUForFheSum(resultType, values, result, msg.sender);
680+
HCU_LIMIT.checkHCUForFheSum(resultType, values, result, msg.sender);
681681
emit FheSum(msg.sender, values, resultType, result);
682682
}
683683

@@ -974,7 +974,7 @@ contract FHEVMExecutor is UUPSUpgradeableEmptyProxy, FHEEvents, ACLOwnable {
974974
FheType resultType
975975
) internal virtual returns (bytes32 result) {
976976
for (uint256 i = 0; i < values.length; i++) {
977-
if (!acl.isAllowed(values[i], msg.sender)) revert ACLNotAllowed(values[i], msg.sender);
977+
if (!ACL.isAllowed(values[i], msg.sender)) revert ACLNotAllowed(values[i], msg.sender);
978978
if (_typeOf(values[i]) != resultType) revert IncompatibleTypes();
979979
}
980980
result = keccak256(
@@ -983,14 +983,14 @@ contract FHEVMExecutor is UUPSUpgradeableEmptyProxy, FHEEvents, ACLOwnable {
983983
op,
984984
values.length,
985985
values,
986-
acl,
986+
ACL,
987987
block.chainid,
988988
blockhash(block.number - 1),
989989
block.timestamp
990990
)
991991
);
992992
result = _appendMetadataToPrehandle(result, resultType);
993-
acl.allowTransient(result, msg.sender);
993+
ACL.allowTransient(result, msg.sender);
994994
}
995995

996996
function _generateSeed() internal virtual returns (bytes16 seed) {

host-contracts/contracts/HCULimit.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,7 +1492,7 @@ contract HCULimit is UUPSUpgradeableEmptyProxy, ACLOwnable {
14921492
bytes32 result,
14931493
address caller
14941494
) external virtual {
1495-
if (msg.sender != fhevmExecutorAddress) revert CallerMustBeFHEVMExecutorContract();
1495+
if (msg.sender != FHEVM_EXECUTOR_ADDRESS) revert CallerMustBeFHEVMExecutorContract();
14961496
uint256 n = values.length;
14971497
uint256 opHCU;
14981498
if (resultType == FheType.Uint8) {

0 commit comments

Comments
 (0)