From 0fe00d6a120bebc359fb9458336b2079cccc2520 Mon Sep 17 00:00:00 2001 From: y9san9 Date: Thu, 14 Oct 2021 14:57:10 +0300 Subject: [PATCH] #22: little fix --- .../kotlin/dev.icerock.moko.web3/hex/HexStringValueClass.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web3/src/commonMain/kotlin/dev.icerock.moko.web3/hex/HexStringValueClass.kt b/web3/src/commonMain/kotlin/dev.icerock.moko.web3/hex/HexStringValueClass.kt index e82f025..39ae8b9 100644 --- a/web3/src/commonMain/kotlin/dev.icerock.moko.web3/hex/HexStringValueClass.kt +++ b/web3/src/commonMain/kotlin/dev.icerock.moko.web3/hex/HexStringValueClass.kt @@ -15,7 +15,7 @@ internal class HexStringValueClass(private val value: String): HexString { override val withoutPrefix: String get() = value.removePrefix(HEX_PREFIX) override val prefixed: String get() = "$HEX_PREFIX$withoutPrefix" - override val bigInt: BigInt get() = value.bi(RADIX) + override val bigInt: BigInt get() = withoutPrefix.bi(RADIX) override fun toString() = withoutPrefix override fun hashCode(): Int = withoutPrefix.hashCode()