You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Motivation:**
The encoding in the `OperatorTableUpdater` was incorrect, as it expected
the `OperatorTableInfo` was in decoded format, but it is first in bytes
then needs to be decoded to `BN254OperatorSetInfo` or
`ECDSAOperatorSetInfo[]`
**Modifications:**
Update the `OperatorTableUpdater` to decode the table to bytes first,
then decode to `BN254OperatorSetInfo` or `ECDSAOperatorSetInfo[]` based
on the `KeyType`.
**Result:**
Correct decoding/encoding
@@ -254,40 +258,43 @@ contract OperatorTableUpdater is Initializable, OwnableUpgradeable, OperatorTabl
254
258
* @return operatorSet The operator set
255
259
* @return curveType The curve type
256
260
* @return operatorSetInfo The operator set info
257
-
* @dev Does NOT return the operatorInfo, as that is dependent on the curve type, see `_getBN254OperatorSetInfo` and `_getECDSAOperatorSetInfo`
261
+
* @return operatorTableInfo The operator table info. This is encoded as a bytes array, and its value is dependent on the curve type, see `_getBN254OperatorInfo` and `_getECDSAOperatorInfo`
0 commit comments