From 9ce6c6e01a279e3d1afb4a6f8eea6bdea1220c79 Mon Sep 17 00:00:00 2001 From: Godwin Asuquo Date: Mon, 12 Dec 2022 20:34:45 +0100 Subject: [PATCH] set default value to nullable field --- cw_core/lib/node.dart | 4 ++-- cw_haven/lib/haven_wallet.dart | 2 +- cw_monero/lib/monero_wallet.dart | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cw_core/lib/node.dart b/cw_core/lib/node.dart index 325650224..1322c5b78 100644 --- a/cw_core/lib/node.dart +++ b/cw_core/lib/node.dart @@ -53,8 +53,8 @@ class Node extends HiveObject with Keyable { @HiveField(4) bool? useSSL; - @HiveField(5) - bool? trusted; + @HiveField(5, defaultValue: false) + bool trusted; bool get isSSL => useSSL ?? false; diff --git a/cw_haven/lib/haven_wallet.dart b/cw_haven/lib/haven_wallet.dart index 237722cbc..a4b949d8f 100644 --- a/cw_haven/lib/haven_wallet.dart +++ b/cw_haven/lib/haven_wallet.dart @@ -122,7 +122,7 @@ abstract class HavenWalletBase extends WalletBase