mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
[skip ci] fix issue with nullable field in Node adapter
This commit is contained in:
parent
f2ea86a713
commit
6c9f9a4d19
3 changed files with 3 additions and 3 deletions
|
@ -54,7 +54,7 @@ class Node extends HiveObject with Keyable {
|
||||||
bool? useSSL;
|
bool? useSSL;
|
||||||
|
|
||||||
@HiveField(5)
|
@HiveField(5)
|
||||||
bool trusted;
|
bool? trusted;
|
||||||
|
|
||||||
bool get isSSL => useSSL ?? false;
|
bool get isSSL => useSSL ?? false;
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ abstract class HavenWalletBase extends WalletBase<MoneroBalance,
|
||||||
useSSL: node.useSSL ?? false,
|
useSSL: node.useSSL ?? false,
|
||||||
isLightWallet: false); // FIXME: hardcoded value
|
isLightWallet: false); // FIXME: hardcoded value
|
||||||
|
|
||||||
haven_wallet.setTrustedDaemon(node.trusted);
|
haven_wallet.setTrustedDaemon(node.trusted ?? false);
|
||||||
syncStatus = ConnectedSyncStatus();
|
syncStatus = ConnectedSyncStatus();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
syncStatus = FailedSyncStatus();
|
syncStatus = FailedSyncStatus();
|
||||||
|
|
|
@ -137,7 +137,7 @@ abstract class MoneroWalletBase extends WalletBase<MoneroBalance,
|
||||||
useSSL: node.isSSL,
|
useSSL: node.isSSL,
|
||||||
isLightWallet: false); // FIXME: hardcoded value
|
isLightWallet: false); // FIXME: hardcoded value
|
||||||
|
|
||||||
monero_wallet.setTrustedDaemon(node.trusted);
|
monero_wallet.setTrustedDaemon(node.trusted ?? false);
|
||||||
syncStatus = ConnectedSyncStatus();
|
syncStatus = ConnectedSyncStatus();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
syncStatus = FailedSyncStatus();
|
syncStatus = FailedSyncStatus();
|
||||||
|
|
Loading…
Reference in a new issue