Skip to content

Commit

Permalink
Bufixes/fix cosmoskit (#66)
Browse files Browse the repository at this point in the history
* Update cosmoskit

* No longer always redirect on wallet change

* Remove cosmostation mobile

* .

* Update to latest versions
  • Loading branch information
Redm4x authored Jan 3, 2024
1 parent dc1ecca commit 4781320
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 151 deletions.
224 changes: 81 additions & 143 deletions deploy-web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions deploy-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
"@auth0/nextjs-auth0": "^3.1.0",
"@cosmjs/encoding": "^0.29.5",
"@cosmjs/stargate": "^0.29.5",
"@cosmos-kit/cosmostation": "^2.5.0",
"@cosmos-kit/keplr": "^2.5.0",
"@cosmos-kit/leap-extension": "^2.6.0",
"@cosmos-kit/react": "^2.9.14",
"@cosmos-kit/cosmostation-extension": "^2.6.4",
"@cosmos-kit/keplr": "^2.5.4",
"@cosmos-kit/leap-extension": "^2.6.4",
"@cosmos-kit/react": "^2.9.20",
"@emotion/cache": "^11.7.1",
"@emotion/css": "^11.7.1",
"@emotion/react": "^11.11.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChainProvider, useManager } from "@cosmos-kit/react";
import { wallets as keplr } from "@cosmos-kit/keplr";
import { wallets as leap } from "@cosmos-kit/leap-extension";
import { wallets as cosmostation } from "@cosmos-kit/cosmostation";
import { wallets as cosmostation } from "@cosmos-kit/cosmostation-extension";
import { customRegistry } from "@src/utils/customRegistry";
import { GasPrice } from "@cosmjs/stargate";
import { akash, akashAssetList, akashSandbox, akashSandboxAssetList, akashTestnet, akashTestnetAssetList } from "@src/chains";
Expand Down
8 changes: 5 additions & 3 deletions deploy-web/src/context/WalletProvider/WalletProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,13 @@ export const WalletProvider = ({ children }) => {
});
}

// Redirect to homepage when changing wallet
// Update balances on wallet address change
useEffect(() => {
if (walletAddress) {
router.push(UrlService.home());

// Redirect to deployment list if on deployment detail page
if (router.pathname.startsWith("/deployments/")) {
router.push(UrlService.deploymentList());
}
loadWallet();
}
}, [walletAddress]);
Expand Down

0 comments on commit 4781320

Please sign in to comment.