Skip to content

Commit

Permalink
Enable period data fetching for Shiden and Astar (#156)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 authored Jul 8, 2024
1 parent 6296688 commit 634b444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/DappsStakingEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ export class DappsStakingEvents extends ServiceBase implements IDappsStakingEven
}

public async getAggregatedPeriodData(network: NetworkType, period: number): Promise<PeriodDataResponse[]> {
if (!['shibuya'].includes(network)) {
if (!['shibuya', 'shiden', 'astar'].includes(network)) {
throw new Error(`This method is not supported for the network ${network}`);
}

Expand Down

0 comments on commit 634b444

Please sign in to comment.