From 43f578f6f2602cf65eec1c607849935919439a92 Mon Sep 17 00:00:00 2001 From: Rui Date: Fri, 18 Oct 2024 15:08:16 -0700 Subject: [PATCH] Clear vault when loggin out --- build.gradle.kts | 2 ++ .../exchange.dydx.abacus/state/v2/supervisor/VaultSupervisor.kt | 2 ++ 2 files changed, 4 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index a81f4c759..88c85e5d9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -63,8 +63,10 @@ kotlin { jvm { compilations.all { kotlinOptions.jvmTarget = "1.8" + kotlinOptions.freeCompilerArgs += "-Xjdk-release=1.8" kotlinOptions.moduleName = "abacus" } + withJava() testRuns["test"].executionTask.configure { useJUnitPlatform() diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/VaultSupervisor.kt b/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/VaultSupervisor.kt index 8c93bdf9d..021e50d5e 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/VaultSupervisor.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/state/v2/supervisor/VaultSupervisor.kt @@ -30,6 +30,8 @@ internal class VaultSupervisor( stopPollingValidatorData() startPollingValidatorData(value) } + stateMachine.internalState.vault = null + field = value } }