mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-20 17:44:31 +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
|
@override
|
||||||
Future<void> updateNode() async {
|
Future<void> updateNode() async {
|
||||||
_solNode = getCurrentNode();
|
_solNode = NodeService(secureStorageInterface: secureStorageInterface)
|
||||||
|
.getPrimaryNodeFor(currency: info.coin) ??
|
||||||
|
info.coin.defaultNode;
|
||||||
await refresh();
|
await refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
NodeModel getCurrentNode() {
|
NodeModel getCurrentNode() {
|
||||||
return _solNode ??
|
_solNode ??= NodeService(secureStorageInterface: secureStorageInterface)
|
||||||
NodeService(secureStorageInterface: secureStorageInterface)
|
|
||||||
.getPrimaryNodeFor(currency: info.coin) ??
|
.getPrimaryNodeFor(currency: info.coin) ??
|
||||||
info.coin.defaultNode;
|
info.coin.defaultNode;
|
||||||
|
|
||||||
|
return _solNode!;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Reference in a new issue