From e180c55f57c12023bd2d81acfa21aff9f5ce23f6 Mon Sep 17 00:00:00 2001 From: Carl Date: Wed, 19 Jun 2024 13:22:18 +0800 Subject: [PATCH] fix: rhomarkets adapter query support blockNumber parameters --- adapters/rhomarkets/src/sdk/request.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/adapters/rhomarkets/src/sdk/request.ts b/adapters/rhomarkets/src/sdk/request.ts index ed998cd..a658918 100644 --- a/adapters/rhomarkets/src/sdk/request.ts +++ b/adapters/rhomarkets/src/sdk/request.ts @@ -31,12 +31,9 @@ query ($limit: Int, $offset: Int, $blockNumber: Int) { export async function fetchGraphQLData( blockNumber: number ): Promise { - // limit: number, - // offset: number, - // data(block: { number: ${blockNumber} }) { const query = ` - query RHO_MARKETS { - data { + query RHO_MARKETS { + data(blockNumber: ${blockNumber}) { timestamp block_number user_address