From be3c89389b986f94a94e3d92a4e2fd73926796b9 Mon Sep 17 00:00:00 2001 From: fgfm999 Date: Sat, 15 Feb 2025 18:18:44 +0800 Subject: [PATCH] Fix the example in comments --- src/api/general.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/general.ts b/src/api/general.ts index 9dff1f311..5cf1a4776 100644 --- a/src/api/general.ts +++ b/src/api/general.ts @@ -279,11 +279,11 @@ export class General { * async function runExample() { * // Querying the Aptos Indexer for ledger information * const topUserTransactions = await aptos.queryIndexer({ - * query: `query MyQuery { + * query: { query: `query MyQuery { * ledger_infos { * chain_id * } - * }` + * }`} * }); * * console.log(topUserTransactions);