From 9532c36a7c60fe5a5c2cbf4608c5e3c1e4fa90d9 Mon Sep 17 00:00:00 2001 From: devmosis Date: Fri, 13 Sep 2024 23:19:36 +0900 Subject: [PATCH] Refactor SkipChainProcessor to use 'pretty_name' field --- .../processor/router/skip/SkipChainProcessor.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipChainProcessor.kt b/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipChainProcessor.kt index 07ee41a16..4b029c811 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipChainProcessor.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/processor/router/skip/SkipChainProcessor.kt @@ -8,8 +8,8 @@ internal class SkipChainProcessor(private val parser: ParserProtocol) { payload: Map ): SelectionOption { return SelectionOption( - stringKey = parser.asString(payload["network_identifier"]) ?: parser.asString(payload["chain_name"]), - string = parser.asString(payload["network_identifier"]) ?: parser.asString(payload["chain_name"]), + stringKey = parser.asString(payload["network_identifier"]) ?: parser.asString(payload["pretty_name"]), + string = parser.asString(payload["network_identifier"]) ?: parser.asString(payload["pretty_name"]), type = parser.asString(payload["chain_id"]) ?: "", iconUrl = parser.asString(payload["logo_uri"]), )