We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66b6d64 commit 0a2f710Copy full SHA for 0a2f710
packages/stellar_client/lib/src/client.dart
@@ -667,9 +667,14 @@ class Client {
667
final SubmitTransactionResponse response =
668
await _sdk.submitTransaction(transaction);
669
if (!response.success) {
670
+ if (response.extras!.resultCodes!.operationsResultCodes!
671
+ .contains('op_low_reserve')) {
672
+ throw Exception('Transaction failed due to low reserve.');
673
+ }
674
logger.e('Transaction failed with result: ${response.resultXdr}');
675
return false;
676
}
677
+
678
return true;
679
} catch (error) {
680
throw Exception('Transaction failed due to: ${error.toString()}');
0 commit comments