From 3b8acc54aadd6238835ed2beb16a64048ae7fe5e Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 15:27:52 -0700 Subject: [PATCH 01/22] Test --- .pre-commit-config.yaml | 8 ++++++++ .../state/app/helper/TriggerOrderToastGenerator.kt | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..0b3160f3d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,8 @@ +repos: + - repo: local + hooks: + - id: spotless-apply + name: spotless-apply + entry: ./gradlew spotlessApply + language: script + stages: [pre-commit] diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index 5d2ddc80f..7e59d01a0 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -346,8 +346,8 @@ class TriggerOrderToastGenerator( orderTypePath = null } } - - val orderType = orderTypePath?.let { localizer.localize(it) } + + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From 524504591a7b26a265ca8e157214e57ca48d3ee7 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 18:58:27 -0700 Subject: [PATCH 02/22] WIP --- .pre-commit-config.yaml | 17 ++++++++++++++--- run_spotless_apply.sh | 5 +++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100755 run_spotless_apply.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0b3160f3d..ab582a6e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,19 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks + repos: - - repo: local +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 hooks: - - id: spotless-apply + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + +- repo: local + hooks: + - id: spotless-apply name: spotless-apply - entry: ./gradlew spotlessApply + entry: ./run_spotless_apply.sh language: script stages: [pre-commit] diff --git a/run_spotless_apply.sh b/run_spotless_apply.sh new file mode 100755 index 000000000..20df90137 --- /dev/null +++ b/run_spotless_apply.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +./gradlew spotlessApply + +exit 0 From f548b6cb174e18d579d858b752e5b4d8ae66b986 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 18:59:16 -0700 Subject: [PATCH 03/22] Test --- .../state/app/helper/TriggerOrderToastGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index 7e59d01a0..e32efd9b0 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -347,7 +347,7 @@ class TriggerOrderToastGenerator( } } - val orderType = orderTypePath?.let { localizer.localize(it) } + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From 0c669686cabd3ab3711f914808e00f9bf02a1425 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:06:47 -0700 Subject: [PATCH 04/22] Test --- .pre-commit-config.yaml | 4 ---- .pre-commit-hooks.yaml | 5 +++++ .../state/app/helper/TriggerOrderToastGenerator.kt | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ab582a6e8..907a8f0f7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -13,7 +13,3 @@ repos: - repo: local hooks: - id: spotless-apply - name: spotless-apply - entry: ./run_spotless_apply.sh - language: script - stages: [pre-commit] diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 000000000..148863ba9 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,5 @@ +- id: spotless-apply + name: spotless-apply + entry: ./run_spotless_apply.sh + language: script + stages: [pre-commit] diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index e32efd9b0..fd98325a5 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -347,7 +347,7 @@ class TriggerOrderToastGenerator( } } - val orderType = orderTypePath?.let { localizer.localize(it) } + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From 5484babcba86e0bb0f6cb77b6a1a98905c3ae36e Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:07:50 -0700 Subject: [PATCH 05/22] Test --- .pre-commit-config.yaml | 8 -------- .pre-commit-hooks.yaml | 2 +- .../state/app/helper/TriggerOrderToastGenerator.kt | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 907a8f0f7..2756e1435 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,14 +2,6 @@ # See https://pre-commit.com/hooks.html for more hooks repos: -- repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 - hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - id: check-yaml - - id: check-added-large-files - - repo: local hooks: - id: spotless-apply diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 148863ba9..5e483df97 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,5 +1,5 @@ - id: spotless-apply name: spotless-apply - entry: ./run_spotless_apply.sh + entry: ./gradlew spotlessApply language: script stages: [pre-commit] diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index fd98325a5..68ffbf8fa 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -347,7 +347,7 @@ class TriggerOrderToastGenerator( } } - val orderType = orderTypePath?.let { localizer.localize(it) } + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From 52d54f3e51a825b905486dc7d77789df2c25caf4 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:08:19 -0700 Subject: [PATCH 06/22] Test --- .../state/app/helper/TriggerOrderToastGenerator.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index 68ffbf8fa..f11d319cd 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -346,8 +346,8 @@ class TriggerOrderToastGenerator( orderTypePath = null } } - - val orderType = orderTypePath?.let { localizer.localize(it) } + + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From b53bbaec29482fa34d6a16cd65f5c4f8454e6679 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:11:57 -0700 Subject: [PATCH 07/22] Test --- .../state/app/helper/TriggerOrderToastGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index f11d319cd..e41db000f 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -347,7 +347,7 @@ class TriggerOrderToastGenerator( } } - val orderType = orderTypePath?.let { localizer.localize(it) } + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From 04ffb3178e82e781e52f47b9a6c28d9f0eb716de Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:20:10 -0700 Subject: [PATCH 08/22] Test --- .pre-commit-config.yaml | 4 ++++ .pre-commit-hooks.yaml | 1 + .../state/app/helper/TriggerOrderToastGenerator.kt | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2756e1435..d5847c5b2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,3 +5,7 @@ repos: - repo: local hooks: - id: spotless-apply + name: spotless-apply + entry: ./run_spotless_apply.sh + language: script + stages: [pre-commit] diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 5e483df97..766a25c87 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,3 +1,4 @@ +hooks: - id: spotless-apply name: spotless-apply entry: ./gradlew spotlessApply diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index e41db000f..5d2ddc80f 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -347,7 +347,7 @@ class TriggerOrderToastGenerator( } } - val orderType = orderTypePath?.let { localizer.localize(it) } + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From 2eb2071a211bb75e19726026005d256fd0453273 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:20:38 -0700 Subject: [PATCH 09/22] Test --- .pre-commit-hooks.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 766a25c87..d8716eace 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,6 +1,2 @@ hooks: - id: spotless-apply - name: spotless-apply - entry: ./gradlew spotlessApply - language: script - stages: [pre-commit] From 48c5209075f68430bd1125ce762a739cdc138977 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:21:26 -0700 Subject: [PATCH 10/22] test --- .pre-commit-hooks.yaml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml deleted file mode 100644 index d8716eace..000000000 --- a/.pre-commit-hooks.yaml +++ /dev/null @@ -1,2 +0,0 @@ -hooks: -- id: spotless-apply From e37e8aced7d607cc47d5e3f7422eb4da15fbf6a9 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:28:02 -0700 Subject: [PATCH 11/22] Update README --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 07af06354..7a4828ecb 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,13 @@ Integration tests can be written to call Abacus from non-Kotlin code (i.e., Swif > ./bump_version.sh +# Auto-lint + +Enable pre-commit to auto-lint/auto-format your changes before git commit: + +> brew install pre-commit +> pre-commit install + # How to use ``` From ea38cc56710dd1b360195329acd93a37b65adebf Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:29:00 -0700 Subject: [PATCH 12/22] Test --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a4828ecb..4cedaace3 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ Integration tests can be written to call Abacus from non-Kotlin code (i.e., Swif > ./bump_version.sh # Auto-lint - + Enable pre-commit to auto-lint/auto-format your changes before git commit: > brew install pre-commit From db19dbf35320980813412dbed3adf8b18b5fb79a Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:29:22 -0700 Subject: [PATCH 13/22] Test --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4cedaace3..7a4828ecb 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ Integration tests can be written to call Abacus from non-Kotlin code (i.e., Swif > ./bump_version.sh # Auto-lint - + Enable pre-commit to auto-lint/auto-format your changes before git commit: > brew install pre-commit From b3be1904215b4d28c0e704fd4e6d374bc7f309bf Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:51:26 -0700 Subject: [PATCH 14/22] pre-push --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d5847c5b2..f2b8b6f4e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,4 +8,4 @@ repos: name: spotless-apply entry: ./run_spotless_apply.sh language: script - stages: [pre-commit] + stages: [pre-push] From 543fd3d6cf9aa1940e87c281d6c8301f93754e0c Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:51:46 -0700 Subject: [PATCH 15/22] Test --- .../state/app/helper/TriggerOrderToastGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index 5d2ddc80f..f11d319cd 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -347,7 +347,7 @@ class TriggerOrderToastGenerator( } } - val orderType = orderTypePath?.let { localizer.localize(it) } + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From 45dd721e3aebcc03a37d6bd19337ffb859f766ae Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:53:04 -0700 Subject: [PATCH 16/22] Test --- .pre-commit-config.yaml | 2 +- .../state/app/helper/TriggerOrderToastGenerator.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f2b8b6f4e..d5847c5b2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,4 +8,4 @@ repos: name: spotless-apply entry: ./run_spotless_apply.sh language: script - stages: [pre-push] + stages: [pre-commit] diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index f11d319cd..5d2ddc80f 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -347,7 +347,7 @@ class TriggerOrderToastGenerator( } } - val orderType = orderTypePath?.let { localizer.localize(it) } + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From a3bb1c7867d63c86bbde8a426c498563279f4434 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:56:27 -0700 Subject: [PATCH 17/22] Test --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d5847c5b2..f2b8b6f4e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,4 +8,4 @@ repos: name: spotless-apply entry: ./run_spotless_apply.sh language: script - stages: [pre-commit] + stages: [pre-push] From 5d904578c1b8e7c1b877ad48d3bb6181b7d5a82d Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:59:11 -0700 Subject: [PATCH 18/22] Test --- .pre-commit-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f2b8b6f4e..91684d691 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,9 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks +default_install_hook_types: + [pre-push] + repos: - repo: local hooks: From 262ad8d07725cd2a154f463c063b88c85d67218b Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 19:59:40 -0700 Subject: [PATCH 19/22] Test --- .../state/app/helper/TriggerOrderToastGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index 5d2ddc80f..f11d319cd 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -347,7 +347,7 @@ class TriggerOrderToastGenerator( } } - val orderType = orderTypePath?.let { localizer.localize(it) } + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From 7c786218d256a0bad669fbc7dba22cd3ea11a9ee Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 20:01:41 -0700 Subject: [PATCH 20/22] Test --- .../state/app/helper/TriggerOrderToastGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index f11d319cd..5d2ddc80f 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -347,7 +347,7 @@ class TriggerOrderToastGenerator( } } - val orderType = orderTypePath?.let { localizer.localize(it) } + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From 0c3f25eacb62e9782d95e1648e48c18d4be9561b Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 20:02:00 -0700 Subject: [PATCH 21/22] Testr --- .../state/app/helper/TriggerOrderToastGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index 5d2ddc80f..f11d319cd 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -347,7 +347,7 @@ class TriggerOrderToastGenerator( } } - val orderType = orderTypePath?.let { localizer.localize(it) } + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it, From bc6fcfa83ee557f6365e3250b36ed332d7a7a328 Mon Sep 17 00:00:00 2001 From: Rui Date: Tue, 30 Apr 2024 20:02:18 -0700 Subject: [PATCH 22/22] Test --- .../state/app/helper/TriggerOrderToastGenerator.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt index f11d319cd..5d2ddc80f 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/app/helper/TriggerOrderToastGenerator.kt @@ -347,7 +347,7 @@ class TriggerOrderToastGenerator( } } - val orderType = orderTypePath?.let { localizer.localize(it) } + val orderType = orderTypePath?.let { localizer.localize(it) } val detail = detailStringPath?.let { localizer.localizeWithParams( path = it,