From ed1dc75a3db7a98f57fb6b9fd5f94f3c74bd61ab Mon Sep 17 00:00:00 2001 From: Omar Hatem Date: Tue, 25 Oct 2022 22:33:56 +0200 Subject: [PATCH] Add nullability to amount in transaction_history.dart (#565) --- cw_monero/lib/api/transaction_history.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cw_monero/lib/api/transaction_history.dart b/cw_monero/lib/api/transaction_history.dart index e9e161f42..0fc507500 100644 --- a/cw_monero/lib/api/transaction_history.dart +++ b/cw_monero/lib/api/transaction_history.dart @@ -182,7 +182,7 @@ void commitTransaction({required Pointer transactionPoint PendingTransactionDescription _createTransactionSync(Map args) { final address = args['address'] as String; final paymentId = args['paymentId'] as String; - final amount = args['amount'] as String; + final amount = args['amount'] as String?; final priorityRaw = args['priorityRaw'] as int; final accountIndex = args['accountIndex'] as int;