From 80a7b3de8a503691caac1dd85120e961144eeb29 Mon Sep 17 00:00:00 2001
From: julian <julian@cypherstack.com>
Date: Wed, 28 Sep 2022 09:46:46 -0600
Subject: [PATCH] confirms null check

---
 lib/services/coins/wownero/wownero_wallet.dart | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lib/services/coins/wownero/wownero_wallet.dart b/lib/services/coins/wownero/wownero_wallet.dart
index cbc37d147..857b89031 100644
--- a/lib/services/coins/wownero/wownero_wallet.dart
+++ b/lib/services/coins/wownero/wownero_wallet.dart
@@ -13,17 +13,17 @@ import 'package:cw_core/wallet_service.dart';
 import 'package:cw_core/wallet_type.dart';
 import 'package:cw_wownero/api/exceptions/creation_transaction_exception.dart';
 import 'package:cw_wownero/api/wallet.dart';
+import 'package:cw_wownero/pending_wownero_transaction.dart';
 import 'package:cw_wownero/wownero_amount_format.dart';
 import 'package:cw_wownero/wownero_wallet.dart';
-import 'package:cw_wownero/pending_wownero_transaction.dart';
 import 'package:dart_numerics/dart_numerics.dart';
 import 'package:decimal/decimal.dart';
 import 'package:flutter/foundation.dart';
 import 'package:flutter_libmonero/core/key_service.dart';
 import 'package:flutter_libmonero/core/wallet_creation_service.dart';
-import 'package:flutter_libmonero/wownero/wownero.dart';
 import 'package:flutter_libmonero/view_model/send/output.dart'
     as wownero_output;
+import 'package:flutter_libmonero/wownero/wownero.dart';
 import 'package:flutter_secure_storage/flutter_secure_storage.dart';
 import 'package:http/http.dart';
 import 'package:mutex/mutex.dart';
@@ -1249,6 +1249,7 @@ class WowneroWallet extends CoinServiceAPI {
         // // create final tx map
         midSortedTx["txid"] = tx.value.id;
         midSortedTx["confirmed_status"] = !tx.value.isPending &&
+            tx.value.confirmations != null &&
             tx.value.confirmations! >= MINIMUM_CONFIRMATIONS;
         midSortedTx["confirmations"] = tx.value.confirmations ?? 0;
         midSortedTx["timestamp"] =