fix solana node update logic

This commit is contained in:
julian 2024-11-26 10:30:49 -06:00
parent 31fe9a538b
commit 7d047e8d47

View file

@ -357,16 +357,19 @@ class SolanaWallet extends Bip39Wallet<Solana> {
@override
Future<void> 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