@@ -25,8 +25,8 @@ const createRollupV2Dot1FunctionSelector = getFunctionSelector(createRollupV2Dot
2525const createRollupV1Dot1ABI = getAbiItem ( { abi : rollupCreatorV1Dot1ABI , name : 'createRollup' } ) ;
2626const createRollupV1Dot1FunctionSelector = getFunctionSelector ( createRollupV1Dot1ABI ) ;
2727
28- const setValidatorPreV3Dot1ABI = getAbiItem ( { abi : rollupV2Dot1ABI , name : 'setValidator' } ) ;
29- const setValidatorPreV3Dot1FunctionSelector = getFunctionSelector ( setValidatorPreV3Dot1ABI ) ;
28+ const setValidatorABI = getAbiItem ( { abi : rollupV3Dot1ABI , name : 'setValidator' } ) ;
29+ const setValidatorFunctionSelector = getFunctionSelector ( setValidatorABI ) ;
3030
3131const executeCallABI = getAbiItem ( { abi : upgradeExecutorABI , name : 'executeCall' } ) ;
3232const upgradeExecutorExecuteCallFunctionSelector = getFunctionSelector ( executeCallABI ) ;
@@ -45,7 +45,7 @@ function getValidatorsFromFunctionData<
4545 TAbi extends
4646 | ( typeof createRollupV2Dot1ABI ) [ ]
4747 | ( typeof createRollupV1Dot1ABI ) [ ]
48- | ( typeof setValidatorPreV3Dot1ABI ) [ ] ,
48+ | ( typeof setValidatorABI ) [ ] ,
4949> ( { abi, data } : { abi : TAbi ; data : Hex } ) {
5050 const { args } = decodeFunctionData ( {
5151 abi,
@@ -79,7 +79,7 @@ function iterateThroughValidatorsList(
7979
8080function updateAccumulator ( acc : Set < Address > , input : Hex ) {
8181 const [ validators , enabled ] = getValidatorsFromFunctionData ( {
82- abi : [ setValidatorPreV3Dot1ABI ] ,
82+ abi : [ setValidatorABI ] ,
8383 data : input ,
8484 } ) ;
8585
@@ -192,7 +192,7 @@ export async function getValidators<TChain extends Chain>(
192192
193193 return new Set ( [ ...acc , ...validators ] ) ;
194194 }
195- case setValidatorPreV3Dot1FunctionSelector : {
195+ case setValidatorFunctionSelector : {
196196 return updateAccumulator ( acc , tx . input ) ;
197197 }
198198 case upgradeExecutorExecuteCallFunctionSelector : {
0 commit comments