Skip to content

Commit

Permalink
feat: change default test acc state
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo authored and kyranjamie committed Nov 2, 2023
1 parent d3d86cc commit 9d00f06
Show file tree
Hide file tree
Showing 9 changed files with 165 additions and 180 deletions.

This file was deleted.

2 changes: 1 addition & 1 deletion src/app/store/ledger/bitcoin/bitcoin-key.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ function selectBitcoinKeysSlice(state: RootState) {
return state.ledger.bitcoin;
}

// ts-unused-exports:disable-next-line
export const { slice: bitcoinKeysSlice, adapter } =
generateLedgerChainKeyStorageSlice<BitcoinLedgerAccountDetails>('bitcoin');

const selectors = adapter.getSelectors(selectBitcoinKeysSlice);

export const selectDefaultWalletBitcoinKeyEntities = selectors.selectEntities;
export const selectDefaultWalletBitcoinKeys = selectors.selectAll;
2 changes: 1 addition & 1 deletion src/app/store/ledger/ledger.selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const selectNumberOfLedgerKeysPersisted = createSelector(selectLedger, ledger =>
sumNumbers(Object.values(ledger).map(chain => Object.keys(chain.entities).length))
);

export function useNumberOfLedgerKeysPersisted() {
function useNumberOfLedgerKeysPersisted() {
return useSelector(selectNumberOfLedgerKeysPersisted);
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/store/ledger/stacks/stacks-key.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ function selectStacksKeysSlice(state: RootState) {
return state.ledger.stacks;
}

// ts-unused-exports:disable-next-line
export const { slice: stacksKeysSlice, adapter } = generateLedgerChainKeyStorageSlice<
StacksAppKeysResponseItem & { id: string }
>('stacks');

const selectors = adapter.getSelectors(selectStacksKeysSlice);

export const selectDefaultWalletStacksKeyEntities = selectors.selectEntities;
export const selectDefaultWalletStacksKeys = selectors.selectAll;
4 changes: 2 additions & 2 deletions src/shared/storage/redux-pesist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const legacyPersistConfig: PersistConfig<RootState> = {
version: 1,
storage,
serialize: true,
whitelist: ['analytics', 'chains', 'keys', 'networks', 'onboarding', 'settings'],
whitelist: ['analytics', 'chains', 'software-keys', 'networks', 'onboarding', 'settings'],
};

async function migrateToUsingNoSerialization() {
Expand Down Expand Up @@ -114,7 +114,7 @@ export const persistConfig: PersistConfig<RootState> & UntypedDeserializeOption
'analytics',
'chains',
'ordinals',
'keys',
'software-keys',
'ledger',
'networks',
'onboarding',
Expand Down
Loading

0 comments on commit 9d00f06

Please sign in to comment.