Skip to content

Commit

Permalink
Fix size validation message showing scientific notation (#771)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang authored Jan 7, 2025
1 parent 4e729a5 commit 863c948
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ allprojects {
}

group = "exchange.dydx.abacus"
version = "1.13.45"
version = "1.13.46"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion v4_abacus.podspec
Original file line number Diff line number Diff line change
@@ -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 = ''
Expand Down

0 comments on commit 863c948

Please sign in to comment.