Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bufixes/fix cosmoskit #66

Merged
merged 5 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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