From 590d37708775e83ba6ed776073a400e2be8b60e4 Mon Sep 17 00:00:00 2001 From: Bogdan Crisan Date: Tue, 3 Dec 2024 15:04:33 +0100 Subject: [PATCH] Fix naming issue --- src/typescript/sdk/src/indexer-v2/types/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/typescript/sdk/src/indexer-v2/types/index.ts b/src/typescript/sdk/src/indexer-v2/types/index.ts index 64f10b232..3f15d852e 100644 --- a/src/typescript/sdk/src/indexer-v2/types/index.ts +++ b/src/typescript/sdk/src/indexer-v2/types/index.ts @@ -601,7 +601,7 @@ export const toPriceFeed = (data: DatabaseJsonType["price_feed"]) => { }; }; -export const toRandomNamesRPCResponse = (data: DatabaseJsonType["random_names"]) => +export const toRandomSymbolsRPCResponse = (data: DatabaseJsonType["random_symbols"]) => symbolBytesToEmojis("0" + data.emojis.substring(1)); export const DatabaseTypeConverter = { @@ -619,7 +619,7 @@ export const DatabaseTypeConverter = { [TableName.ProcessorStatus]: toProcessorStatus, [TableName.PriceFeed]: toPriceFeed, [DatabaseRpc.UserPools]: toUserPoolsRPCResponse, - [DatabaseRpc.RandomSymbols]: toRandomNamesRPCResponse, + [DatabaseRpc.RandomSymbols]: toRandomSymbolsRPCResponse, }; export type DatabaseModels = {