From 9963d2ee2e1b5f16442df5a763f62c93c45c97c4 Mon Sep 17 00:00:00 2001 From: Andrew Bueide Date: Thu, 9 Sep 2021 22:13:52 -0500 Subject: [PATCH] Quick fix --- build.gradle.kts | 2 +- .../kotlin/org/chiachat/kbls/crypto/bech32/Bech32Data.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 085f718..8fcb179 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "org.chiachat" -version = "1.0.2" +version = "1.0.3" repositories { mavenCentral() diff --git a/src/commonMain/kotlin/org/chiachat/kbls/crypto/bech32/Bech32Data.kt b/src/commonMain/kotlin/org/chiachat/kbls/crypto/bech32/Bech32Data.kt index d411f2f..916544f 100644 --- a/src/commonMain/kotlin/org/chiachat/kbls/crypto/bech32/Bech32Data.kt +++ b/src/commonMain/kotlin/org/chiachat/kbls/crypto/bech32/Bech32Data.kt @@ -5,8 +5,9 @@ data class Bech32Data( val data: ByteArray ) { override fun equals(other: Any?): Boolean { + if (other == null) return false if (this === other) return true - if (javaClass != other?.javaClass) return false + if (this::class != other::class) return false other as Bech32Data