@@ -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}
0 commit comments