From 0dded75458255e0958ac38657de23b470c9080fd Mon Sep 17 00:00:00 2001 From: supertramp Date: Tue, 2 Dec 2025 23:22:14 +0000 Subject: [PATCH] Improve getGasInfo() type safety - Change return type from Promise to Promise - Provides better TypeScript type checking for gas pricing data - Path already updated to /api/v1/network/gas in Issue #7 - GasInfo interface already defined in types.ts Fixes #10 --- src/core/zhtp-api-methods.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/zhtp-api-methods.ts b/src/core/zhtp-api-methods.ts index 8d97de3..9a830bb 100644 --- a/src/core/zhtp-api-methods.ts +++ b/src/core/zhtp-api-methods.ts @@ -595,8 +595,8 @@ export abstract class ZhtpApiMethods extends ZhtpApiCore { return this.request('/api/v1/blockchain/status'); } - async getGasInfo(): Promise { - return this.request('/api/v1/network/gas'); + async getGasInfo(): Promise { + return this.request('/api/v1/network/gas'); } async getNodeStatus(): Promise {