diff --git a/lib/wallets/wallet/impl/solana_wallet.dart b/lib/wallets/wallet/impl/solana_wallet.dart index 5cbfda157..5d80063aa 100644 --- a/lib/wallets/wallet/impl/solana_wallet.dart +++ b/lib/wallets/wallet/impl/solana_wallet.dart @@ -357,16 +357,19 @@ class SolanaWallet extends Bip39Wallet { @override Future updateNode() async { - _solNode = getCurrentNode(); + _solNode = NodeService(secureStorageInterface: secureStorageInterface) + .getPrimaryNodeFor(currency: info.coin) ?? + info.coin.defaultNode; await refresh(); } @override NodeModel getCurrentNode() { - return _solNode ?? - NodeService(secureStorageInterface: secureStorageInterface) + _solNode ??= NodeService(secureStorageInterface: secureStorageInterface) .getPrimaryNodeFor(currency: info.coin) ?? info.coin.defaultNode; + + return _solNode!; } @override