diff --git a/package.json b/package.json index 22e2b7040e..db43cb9754 100644 --- a/package.json +++ b/package.json @@ -169,7 +169,7 @@ "@fortawesome/react-fontawesome": "^0.2.2", "@hyperplay/chains": "^0.3.0", "@hyperplay/check-disk-space": "^3.5.2", - "@hyperplay/quests-ui": "^0.1.0", + "@hyperplay/quests-ui": "^0.1.8-beta.0", "@hyperplay/ui": "^1.8.18", "@hyperplay/utils": "^0.3.4", "@mantine/carousel": "^7.12.0", diff --git a/patches/@wagmi+core+2.13.4.patch b/patches/@wagmi+core+2.13.4.patch deleted file mode 100644 index 450dd0e1c7..0000000000 --- a/patches/@wagmi+core+2.13.4.patch +++ /dev/null @@ -1,19 +0,0 @@ -diff --git a/node_modules/@wagmi/core/dist/esm/actions/switchChain.js b/node_modules/@wagmi/core/dist/esm/actions/switchChain.js -index d91f5b1..90177de 100644 ---- a/node_modules/@wagmi/core/dist/esm/actions/switchChain.js -+++ b/node_modules/@wagmi/core/dist/esm/actions/switchChain.js -@@ -4,8 +4,12 @@ import { SwitchChainNotSupportedError, } from '../errors/connector.js'; - export async function switchChain(config, parameters) { - const { addEthereumChainParameter, chainId } = parameters; - const connection = config.state.connections.get(parameters.connector?.uid ?? config.state.current); -- if (connection) { -- const connector = connection.connector; -+ let connector = connection?.connector -+ if (!connector && config.connectors && config.connectors.length){ -+ console.warn('Config state connections does not have a valid connector. Setting connector from config connectors directly.') -+ connector = config.connectors[0] -+ } -+ if (connector) { - if (!connector.switchChain) - throw new SwitchChainNotSupportedError({ connector }); - const chain = await connector.switchChain({ diff --git a/yarn.lock b/yarn.lock index 8ea2637f2d..c30085b783 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1325,10 +1325,10 @@ supertest "^6.3.3" zod "^3.22.4" -"@hyperplay/quests-ui@^0.1.0": - version "0.1.0" - resolved "https://registry.yarnpkg.com/@hyperplay/quests-ui/-/quests-ui-0.1.0.tgz#10fad9ad123efd57d231ed7f1d9af86469b1aa63" - integrity sha512-VHTcOPZuoCXiAG0omnT6HqqEoakKjbEmQNrbLlsjhBwAHCnc4vNLtlXHjfNghEvlYjHG534dbbzHMRwqdN8y7A== +"@hyperplay/quests-ui@^0.1.8-beta.0": + version "0.1.8-beta.0" + resolved "https://registry.yarnpkg.com/@hyperplay/quests-ui/-/quests-ui-0.1.8-beta.0.tgz#60d1ccb1c1a5f3eedea3c3c21b4c10b8b0a9669b" + integrity sha512-LzRoPv6y+pHR4ZgyqsFy+lVuO88T0iKEVXNNjUAR6jE+USRbMJwDtTHvwsB7YJPt3ZH8FeA9+8xztMEua8Uc2Q== dependencies: classnames "^2.5.1"