Skip to content

Commit

Permalink
fix: httpExceptionTooEarlyResp
Browse files Browse the repository at this point in the history
  • Loading branch information
eddort committed Dec 24, 2023
1 parent d36ebca commit 39a42a1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/staking-router-modules/staking-router.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,6 @@ export class StakingRouterService {
async () => {
const stakingModules = await this.getStakingModules(stakingModuleAddresses);

// If the target query involves retrieving module-specific data, we do not throw the 425 exception
if (stakingModules.length === 0 && !stakingModuleAddresses) {
this.logger.warn("No staking modules in list. Maybe didn't fetched from SR yet");
throw httpExceptionTooEarlyResp();
}

const elBlockSnapshot = await this.getElBlockSnapshot();

if (!elBlockSnapshot) {
Expand Down

0 comments on commit 39a42a1

Please sign in to comment.