Skip to content

Commit

Permalink
wip: update resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeatt committed Aug 31, 2023
1 parent b8b99ae commit 3295e63
Show file tree
Hide file tree
Showing 4 changed files with 1,432 additions and 356 deletions.
28 changes: 8 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"@craco/craco": "^6.1.1",
"@headlessui/react": "^1.1.1",
"@heroicons/react": "^2.0.18",
"@interlay/bridge": "^0.3.13",
"@interlay/interbtc-api": "2.4.3",
"@interlay/bridge": "^0.3.16",
"@interlay/interbtc-api": "2.5.0",
"@interlay/monetary-js": "0.7.3",
"@polkadot/api": "9.14.2",
"@polkadot/api": "10.9.1",
"@polkadot/extension-dapp": "0.44.1",
"@polkadot/react-identicon": "^2.11.1",
"@polkadot/ui-keyring": "^2.9.7",
Expand Down Expand Up @@ -91,7 +91,7 @@
"@commitlint/cli": "^16.2.4",
"@commitlint/config-conventional": "^16.2.4",
"@open-wc/webpack-import-meta-loader": "^0.4.7",
"@polkadot/types": "9.14.2",
"@polkadot/types": "10.9.1",
"@react-types/grid": "^3.1.2",
"@react-types/shared": "^3.14.0",
"@storybook/addon-actions": "^6.5.9",
Expand Down Expand Up @@ -135,27 +135,15 @@
"webpack-bundle-analyzer": "^4.4.0"
},
"resolutions": {
"@acala-network/api": "4.1.8-13",
"@acala-network/eth-providers": "2.5.9",
"babel-loader": "8.1.0",
"bn.js": "4.12.0",
"react-error-overlay": "6.0.9",
"styled-components": "^5",
"@types/history": "^4.7.1",
"@polkadot/api": "^9.14.2",
"@polkadot/api-augment": "^9.14.2",
"@polkadot/api-base": "^9.14.2",
"@polkadot/api-contract": "^9.14.2",
"@polkadot/api-derive": "^9.14.2",
"@polkadot/rpc-augment": "^9.14.2",
"@polkadot/rpc-core": "^9.14.2",
"@polkadot/rpc-provider": "^9.14.2",
"@polkadot/types": "^9.14.2",
"@polkadot/types-augment": "^9.14.2",
"@polkadot/types-codec": "^9.14.2",
"@polkadot/types-create": "^9.14.2",
"@polkadot/types-known": "^9.14.2",
"@polkadot/types-support": "^9.14.2",
"@polkadot/util": "^10.2.4",
"@polkadot/util-crypto": "^10.2.4"
"@polkadot/api": "^10.9.1",
"@polkadot/types": "^10.9.1"
},
"scripts": {
"start": "craco start",
Expand Down
4 changes: 2 additions & 2 deletions src/legacy-components/Topbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ const Topbar = (): JSX.Element => {

const handleAccountSelect = (account: InjectedAccountWithMeta) => {
const keyring = new Keyring({ type: 'sr25519', ss58Format: SS58_FORMAT });
const keyringAccount = keyring.addFromAddress(account.address, account.meta);
setSelectedAccount(keyringAccount);
const keyringAccount = keyring.addFromAddress(account.address, account.meta as any);
setSelectedAccount(keyringAccount as any);
selectProps.onSelectionChange(keyringAccount as KeyringPair);
handleAccountModalClose();
};
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Onboarding/Onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const Onboarding = (): JSX.Element => {

const handleAccountSelect = (account: InjectedAccountWithMeta) => {
const keyring = new Keyring({ type: 'sr25519', ss58Format: SS58_FORMAT });
const keyringAccount = keyring.addFromAddress(account.address, account.meta);
setSelectedAccount(keyringAccount);
const keyringAccount = keyring.addFromAddress(account.address, account.meta as any);
setSelectedAccount(keyringAccount as any);
selectProps.onSelectionChange(keyringAccount as KeyringPair);
handleAccountModalClose();
};
Expand Down
Loading

2 comments on commit 3295e63

@vercel
Copy link

@vercel vercel bot commented on 3295e63 Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3295e63 Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.