From 634b444337207db809dd774f5644a4e023a91768 Mon Sep 17 00:00:00 2001 From: Bobo Date: Mon, 8 Jul 2024 09:54:14 +0200 Subject: [PATCH] Enable period data fetching for Shiden and Astar (#156) --- src/services/DappsStakingEvents.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/DappsStakingEvents.ts b/src/services/DappsStakingEvents.ts index e6726da..13a04e3 100644 --- a/src/services/DappsStakingEvents.ts +++ b/src/services/DappsStakingEvents.ts @@ -544,7 +544,7 @@ export class DappsStakingEvents extends ServiceBase implements IDappsStakingEven } public async getAggregatedPeriodData(network: NetworkType, period: number): Promise { - if (!['shibuya'].includes(network)) { + if (!['shibuya', 'shiden', 'astar'].includes(network)) { throw new Error(`This method is not supported for the network ${network}`); }