mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-03 17:29:23 +00:00
fix solana node update logic
This commit is contained in:
parent
31fe9a538b
commit
7d047e8d47
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue