diff --git a/CHANGELOG.md b/CHANGELOG.md index a57db3f32d..77a6fb8f55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,7 @@ # Changelog +## 1.2.10 +* Fix asset being set incorrectly when quote is null. [#805](https://github.com/stellar/java-stellar-anchor-sdk/pull/805) + ## 1.2.9 * Commit the dirty SEP-31 transaction before calling the `/unique_address` endpoint. [#797](https://github.com/stellar/java-stellar-anchor-sdk/pull/797) diff --git a/build.gradle.kts b/build.gradle.kts index 213ccead79..47474befaa 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -118,7 +118,7 @@ subprojects { allprojects { group = "org.stellar.anchor-sdk" - version = "1.2.9" + version = "1.2.10" tasks.jar { manifest { diff --git a/core/src/main/java/org/stellar/anchor/sep31/Sep31Service.java b/core/src/main/java/org/stellar/anchor/sep31/Sep31Service.java index 94fb8501d3..edad9d0245 100644 --- a/core/src/main/java/org/stellar/anchor/sep31/Sep31Service.java +++ b/core/src/main/java/org/stellar/anchor/sep31/Sep31Service.java @@ -341,7 +341,7 @@ void updateTxAmountsWhenNoQuoteWasUsed() { txn.setAmountExpected(formatAmount(amountIn, scale)); txn.setAmountInAsset(reqAsset.getAssetName()); txn.setAmountOut(formatAmount(amountOut, scale)); - txn.setAmountOutAsset(reqAsset.getAssetName()); + txn.setAmountOutAsset(request.getDestinationAsset()); // Update fee String feeStr = formatAmount(fee, scale);