Skip to content

Commit

Permalink
fix: 425 error while fetching modules
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Dec 21, 2023
1 parent 9906c1e commit 66ccb66
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/staking-router-modules/staking-router.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ export class StakingRouterService {
const { stakingModules, elBlockSnapshot } = await this.entityManager.transactional(
async () => {
const stakingModules = await this.getStakingModules(stakingModuleAddresses);

if (stakingModules.length === 0) {
this.logger.warn("No staking modules in list. Maybe didn't fetched from SR yet");
throw httpExceptionTooEarlyResp();
}
// TODO: Can I just delete this check?
// TODO: approve from Anna
// if (stakingModules.length === 0) {
// this.logger.warn("No staking modules in list. Maybe didn't fetched from SR yet");
// throw httpExceptionTooEarlyResp();
// }

const elBlockSnapshot = await this.getElBlockSnapshot();

Expand Down

0 comments on commit 66ccb66

Please sign in to comment.