Skip to content

Commit

Permalink
Fix transfer asset loading issues on iOS with static typing
Browse files Browse the repository at this point in the history
  • Loading branch information
ruixhuang committed Oct 25, 2024
1 parent c926adc commit 8df00ae
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 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.13"
version = "1.13.14"

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ internal class TransferInputProcessor(
inputState: InternalInputState,
walletState: InternalWalletState,
data: String?,
inputField: TransferInputField,
inputField: TransferInputField?,
subaccountNumber: Int = 0
): InputProcessorResult {
val error: ParsingError? = null
Expand Down Expand Up @@ -182,6 +182,10 @@ internal class TransferInputProcessor(
updated = true
}
}

else -> {
updated = true
}
}

val type = transfer.type
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ fun TradingStateMachine.transfer(
environment: V4Environment,
): StateResponse {
if (staticTyping) {
if (type == null) {
val error = ParsingError.cannotModify("type")
return StateResponse(state, null, iListOf(error))
}

val processor = TransferInputProcessor(
parser = parser,
routerProcessor = routerProcessor,
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.13'
spec.version = '1.13.14'
spec.homepage = 'https://github.com/dydxprotocol/v4-abacus'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down

0 comments on commit 8df00ae

Please sign in to comment.