Skip to content

Commit 98f6b78

Browse files
committed
fix
1 parent 7cb1124 commit 98f6b78

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/getValidators.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,25 +232,25 @@ export async function getValidators<TChain extends Chain>(
232232
blockNumber = 0n;
233233
}
234234

235-
const v3Dot1ValidatorsSetEvents = await getLogsWithBatching(publicClient, {
235+
const validatorsSetEvents = await getLogsWithBatching(publicClient, {
236236
address: rollup,
237237
event: validatorsSetEventAbi,
238238
fromBlock: blockNumber,
239239
});
240240

241-
const validatorsFromV3Dot1Events = v3Dot1ValidatorsSetEvents
241+
const validatorsFromEvents = validatorsSetEvents
242242
.filter((event) => event.eventName === 'ValidatorsSet')
243243
.reduce((acc, event) => {
244244
const { validators: _validators, enabled: _enabled } = event.args;
245245
return iterateThroughValidatorsList(acc, _validators, _enabled);
246246
}, new Set<Address>());
247247

248-
if (validatorsFromV3Dot1Events.size > 0) {
248+
if (validatorsFromEvents.size > 0) {
249249
return {
250250
isAccurate: true,
251-
validators: [...validatorsFromV3Dot1Events],
251+
validators: [...validatorsFromEvents],
252252
};
253253
}
254254

255-
return await getValidatorsPreV3Dot1(publicClient, { rollup }, blockNumber);
255+
return getValidatorsPreV3Dot1(publicClient, { rollup }, blockNumber);
256256
}

0 commit comments

Comments
 (0)