@@ -15,6 +15,7 @@ import { err, ok, Result } from '@synonymdev/result';
1515import Clipboard from '@react-native-clipboard/clipboard' ;
1616import fuzzysort from 'fuzzysort' ;
1717import { ldk } from '@synonymdev/react-native-ldk' ;
18+ import { EAddressType , IAddress , IUtxo } from 'beignet' ;
1819
1920import {
2021 TouchableOpacity ,
@@ -68,8 +69,6 @@ import { setupLdk } from '../../../utils/lightning';
6869import { startWalletServices } from '../../../utils/startup' ;
6970import { updateOnchainFeeEstimates } from '../../../store/utils/fees' ;
7071import { viewControllerIsOpenSelector } from '../../../store/reselect/ui' ;
71- import { EAddressType , IAddress , IUtxo } from 'beignet' ;
72- import { setupLedger , syncLedger } from '../../../utils/ledger' ;
7372
7473export type TAddressViewerData = {
7574 [ EAddressType . p2tr ] : {
@@ -743,7 +742,6 @@ const AddressViewer = ({
743742 if ( selectedNetwork !== config . selectedNetwork ) {
744743 // Wipe existing activity
745744 dispatch ( resetActivityState ( ) ) ;
746- setupLedger ( { selectedWallet, selectedNetwork } ) ;
747745 ldk . stop ( ) ;
748746 // Switch to new network.
749747 dispatch ( updateWallet ( { selectedNetwork : config . selectedNetwork } ) ) ;
@@ -753,7 +751,6 @@ const AddressViewer = ({
753751 await startWalletServices ( { selectedNetwork : config . selectedNetwork } ) ;
754752 await updateOnchainFeeEstimates ( { forceUpdate : true } ) ;
755753 updateActivityList ( ) ;
756- await syncLedger ( ) ;
757754 }
758755
759756 let _utxos : IUtxo [ ] = [ ] ;
0 commit comments