Skip to content

Commit 6f14314

Browse files
committed
chore: forge fmt
1 parent 26a9059 commit 6f14314

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

src/test/mocks/OperatorTableCalculatorMock.sol

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ contract OperatorTableCalculatorMock is IOperatorTableCalculator {
99

1010
mapping(bytes32 => bytes) internal _operatorTableBytes;
1111
mapping(bytes32 => address[]) internal _operators;
12-
mapping(bytes32 => mapping(address => uint256)) internal _operatorWeights;
12+
mapping(bytes32 => mapping(address => uint)) internal _operatorWeights;
1313

1414
function calculateOperatorTableBytes(OperatorSet memory operatorSet) external view returns (bytes memory) {
1515
return _operatorTableBytes[operatorSet.key()];
@@ -19,25 +19,24 @@ contract OperatorTableCalculatorMock is IOperatorTableCalculator {
1919
_operatorTableBytes[operatorSet.key()] = operatorTableBytes;
2020
}
2121

22-
function getOperatorWeights(
23-
OperatorSet calldata operatorSet
24-
) external view returns (address[] memory operators, uint256[][] memory weights) {
22+
function getOperatorWeights(OperatorSet calldata operatorSet)
23+
external
24+
view
25+
returns (address[] memory operators, uint[][] memory weights)
26+
{
2527
bytes32 key = operatorSet.key();
2628
operators = _operators[key];
27-
28-
weights = new uint256[][](operators.length);
29-
for (uint256 i = 0; i < operators.length; i++) {
30-
weights[i] = new uint256[](1);
29+
30+
weights = new uint[][](operators.length);
31+
for (uint i = 0; i < operators.length; i++) {
32+
weights[i] = new uint[](1);
3133
weights[i][0] = _operatorWeights[key][operators[i]];
3234
}
33-
35+
3436
return (operators, weights);
3537
}
3638

37-
function getOperatorWeight(
38-
OperatorSet calldata operatorSet,
39-
address operator
40-
) external view returns (uint256 weight) {
39+
function getOperatorWeight(OperatorSet calldata operatorSet, address operator) external view returns (uint weight) {
4140
return _operatorWeights[operatorSet.key()][operator];
4241
}
4342

@@ -46,7 +45,7 @@ contract OperatorTableCalculatorMock is IOperatorTableCalculator {
4645
_operators[operatorSet.key()] = operators;
4746
}
4847

49-
function setOperatorWeight(OperatorSet memory operatorSet, address operator, uint256 weight) external {
48+
function setOperatorWeight(OperatorSet memory operatorSet, address operator, uint weight) external {
5049
_operatorWeights[operatorSet.key()][operator] = weight;
5150
}
5251
}

src/test/unit/CrossChainRegistryUnit.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ contract CrossChainRegistryUnitTests is
7676
permissionController.setAppointee(avs, target, address(crossChainRegistry), crossChainRegistry.setOperatorSetConfig.selector);
7777
permissionController.setAppointee(avs, target, address(crossChainRegistry), crossChainRegistry.addTransportDestinations.selector);
7878
permissionController.setAppointee(avs, target, address(crossChainRegistry), crossChainRegistry.removeTransportDestinations.selector);
79-
79+
8080
// Set appointee for KeyRegistrar functions
8181
permissionController.setAppointee(avs, target, address(keyRegistrar), keyRegistrar.configureOperatorSet.selector);
8282
cheats.stopPrank();

0 commit comments

Comments
 (0)