Skip to content

Commit

Permalink
refactor: upgrade packages, p1
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Jun 30, 2023
1 parent 846132b commit cb7da02
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 159 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,22 +144,22 @@
"@segment/analytics-next": "1.53.0",
"@sentry/react": "7.57.0",
"@sentry/tracing": "7.57.0",
"@stacks/auth": "6.1.1",
"@stacks/auth": "6.5.4",
"@stacks/blockchain-api-client": "6.3.4",
"@stacks/common": "6.0.0",
"@stacks/connect": "7.2.1",
"@stacks/connect-ui": "6.0.0",
"@stacks/encryption": "6.1.1",
"@stacks/network": "6.5.2",
"@stacks/profile": "6.1.1",
"@stacks/common": "6.5.2",
"@stacks/connect": "7.3.1",
"@stacks/connect-ui": "6.1.1",
"@stacks/encryption": "6.5.4",
"@stacks/network": "6.5.4",
"@stacks/profile": "6.5.4",
"@stacks/rpc-client": "1.0.3",
"@stacks/storage": "6.1.1",
"@stacks/transactions": "6.5.2",
"@stacks/storage": "6.5.4",
"@stacks/transactions": "6.5.4",
"@stacks/ui": "7.10.0",
"@stacks/ui-core": "7.3.0",
"@stacks/ui-theme": "7.5.0",
"@stacks/ui-utils": "7.5.0",
"@stacks/wallet-sdk": "6.2.0",
"@stacks/wallet-sdk": "6.5.4",
"@styled-system/theme-get": "5.1.2",
"@tanstack/query-sync-storage-persister": "4.29.19",
"@tanstack/react-query": "4.29.19",
Expand Down Expand Up @@ -238,7 +238,7 @@
"@redux-devtools/remote": "0.8.0",
"@schemastore/web-manifest": "0.0.6",
"@sentry/webpack-plugin": "2.4.0",
"@stacks/connect-react": "22.0.1",
"@stacks/connect-react": "22.1.1",
"@stacks/prettier-config": "0.0.10",
"@stacks/stacks-blockchain-api-types": "6.3.4",
"@swc-node/jest": "1.5.6",
Expand Down
6 changes: 3 additions & 3 deletions src/app/store/accounts/blockchain/stacks/stacks-accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ const selectStacksWalletState = createSelector(
(keychain, chain) => {
if (!keychain) return;
const { highestAccountIndex, currentAccountIndex } = chain[defaultKeyId];
const accountsToRender = Math.max(highestAccountIndex, currentAccountIndex);
const accountsToRender = Math.max(highestAccountIndex, currentAccountIndex) + 1;

return createNullArrayOfLength(accountsToRender + 1).map((_, index) => {
const stxPrivateKey = deriveStxPrivateKey({ rootNode: keychain, index } as any);
return createNullArrayOfLength(accountsToRender).map((_, index) => {
const stxPrivateKey = deriveStxPrivateKey({ rootNode: keychain, index });
const pubKey = getPublicKey(createStacksPrivateKey(stxPrivateKey));

const identitiesKeychain = keychain.derive(DATA_DERIVATION_PATH);
Expand Down
Loading

0 comments on commit cb7da02

Please sign in to comment.