Skip to content

Commit cfc5ad6

Browse files
committed
Proper handling of Tezos contract.balance_too_low error
1 parent 26c2032 commit cfc5ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dashboard/connection/operation/cubit/operation_cubit.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ class OperationCubit extends Cubit<OperationState> {
337337
if (json['reason'] != null) {
338338
final reason = json['reason']!;
339339
late ResponseString responseString;
340-
if (reason == 'contract.balance_too_low') {
340+
if (reason.contains('contract.balance_too_low')) {
341341
responseString = ResponseString.RESPONSE_STRING_BALANCE_TOO_LOW;
342342
} else if (reason.contains('contract.cannot_pay_storage_fee')) {
343343
responseString =

0 commit comments

Comments
 (0)