From d43728607386437d9802d4b49e5ecd130f791414 Mon Sep 17 00:00:00 2001 From: Alaa Elattar Date: Mon, 19 May 2025 10:50:40 +0300 Subject: [PATCH] fix update order to be sell operation as create order --- packages/stellar_client/lib/src/client.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/stellar_client/lib/src/client.dart b/packages/stellar_client/lib/src/client.dart index 2915798b..202e01af 100644 --- a/packages/stellar_client/lib/src/client.dart +++ b/packages/stellar_client/lib/src/client.dart @@ -715,7 +715,7 @@ class Client { } } - /// Updating a DEX order by submitting a `ManageBuyOfferOperation` transaction. + /// Updating a DEX order by submitting a `ManageSellOfferOperation` transaction. /// /// This function allows user to update previously created order by its offerId. /// @@ -739,8 +739,8 @@ class Client { 'Offer with ID $offerId not found in user\'s account.'), ); - ManageBuyOfferOperation updateOfferOperation = - ManageBuyOfferOperationBuilder( + ManageSellOfferOperation updateOfferOperation = + ManageSellOfferOperationBuilder( targetOffer!.selling, targetOffer.buying, amount,