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

Use new wallet-proxy endpoint and prepare release of 1.6.3 #491

Merged
merged 2 commits into from
Aug 19, 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
6 changes: 6 additions & 0 deletions packages/browser-wallet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.6.3

### Fixed

- Use new wallet proxy endpoint `/v2/ip_info` which includes Company ID Providers, as these are now removed from the `/v1/ip_info`.

## 1.6.2

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-wallet/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@concordium/browser-wallet",
"private": true,
"version": "1.6.2",
"version": "1.6.3",
"description": "Browser extension wallet for the Concordium blockchain",
"author": "Concordium Software",
"license": "Apache-2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,12 @@ export async function getTransactions(
}

export async function getIdentityProviders(): Promise<IdentityProvider[]> {
const proxyPath = `/v1/ip_info`;
const currentNetwork = await storedCurrentNetwork.get();
if (currentNetwork === undefined) {
throw new Error('Tried to access wallet proxy without a loaded network.');
}
// Use the new endpoint for Testnet only, this logic can be simplified once Company ID as been released on mainnet.
const proxyPath = currentNetwork.name === 'Concordium Testnet' ? '/v2/ip_info' : '/v1/ip_info';
const response = await (await getWalletProxy()).get(proxyPath);
return response.data;
}
Expand Down
Loading