From 0c75f6f431c3828b1078d955123b2d13aef6b5d0 Mon Sep 17 00:00:00 2001 From: Toni Tabak Date: Mon, 29 Aug 2022 20:26:47 +0200 Subject: [PATCH] fix: naming --- src/types/api/rpc.ts | 8 ++++---- src/utils/responseParser/rpc.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/types/api/rpc.ts b/src/types/api/rpc.ts index f7a289153..9caa34181 100644 --- a/src/types/api/rpc.ts +++ b/src/types/api/rpc.ts @@ -34,8 +34,8 @@ export namespace RPC { gas_price: number; }; - export type getBlockWithTxHashesResponse = OPENRPC.GetBlockWithTxHashesResponse; - export type getBlockWithTxs = OPENRPC.GetBlockWithTxs; + export type GetBlockWithTxHashesResponse = OPENRPC.GetBlockWithTxHashesResponse; + export type GetBlockWithTxs = OPENRPC.GetBlockWithTxs; export type GetStorageAtResponse = OPENRPC.GetStorageAtResponse; export type GetTransactionReceiptResponse = { @@ -133,12 +133,12 @@ export namespace RPC { starknet_getBlockWithTxHashes: { QUERY: never; REQUEST: any[]; - RESPONSE: getBlockWithTxHashesResponse; + RESPONSE: GetBlockWithTxHashesResponse; }; starknet_getBlockWithTxs: { QUERY: never; REQUEST: any[]; - RESPONSE: getBlockWithTxs; + RESPONSE: GetBlockWithTxs; }; starknet_getNonce: { QUERY: never; diff --git a/src/utils/responseParser/rpc.ts b/src/utils/responseParser/rpc.ts index 097d9601b..604deeaaf 100644 --- a/src/utils/responseParser/rpc.ts +++ b/src/utils/responseParser/rpc.ts @@ -16,7 +16,7 @@ import { RPC } from '../../types/api'; import { toBN } from '../number'; import { ResponseParser } from '.'; -type RpcGetBlockResponse = RPC.getBlockWithTxHashesResponse & { +type RpcGetBlockResponse = RPC.GetBlockWithTxHashesResponse & { [key: string]: any; };