diff --git a/build.gradle.kts b/build.gradle.kts index e313cfd0c..17a600359 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -52,7 +52,7 @@ allprojects { } group = "exchange.dydx.abacus" -version = "1.13.45" +version = "1.13.46" repositories { google() diff --git a/src/commonMain/kotlin/exchange.dydx.abacus/validator/BaseInputValidator.kt b/src/commonMain/kotlin/exchange.dydx.abacus/validator/BaseInputValidator.kt index 8f473ac00..8384a8749 100644 --- a/src/commonMain/kotlin/exchange.dydx.abacus/validator/BaseInputValidator.kt +++ b/src/commonMain/kotlin/exchange.dydx.abacus/validator/BaseInputValidator.kt @@ -1,5 +1,6 @@ package exchange.dydx.abacus.validator +import com.ionspin.kotlin.bignum.decimal.toBigDecimal import exchange.dydx.abacus.output.input.ErrorAction import exchange.dydx.abacus.output.input.ErrorFormat import exchange.dydx.abacus.output.input.ErrorParam @@ -188,9 +189,7 @@ internal open class BaseInputValidator( } ErrorFormat.Size -> { - parser.asDouble(value)?.let { amount -> - "$amount" - } ?: run { null } + parser.asDouble(value)?.toBigDecimal()?.toPlainString() ?: run { null } } else -> null diff --git a/v4_abacus.podspec b/v4_abacus.podspec index dcab222aa..fc4ce5846 100644 --- a/v4_abacus.podspec +++ b/v4_abacus.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'v4_abacus' - spec.version = '1.13.45' + spec.version = '1.13.46' spec.homepage = 'https://github.com/dydxprotocol/v4-abacus' spec.source = { :http=> ''} spec.authors = ''