Skip to content

Commit

Permalink
Merge pull request #492 from Concordium/release-1-6-4
Browse files Browse the repository at this point in the history
Prepare release of 1.6.4
  • Loading branch information
limemloh authored Aug 21, 2024
2 parents e49ae1e + e7cb9e5 commit eaaa1fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 7 additions & 1 deletion packages/browser-wallet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# Changelog

## 1.6.4

### Fixed

- Prepare for Company ID providers on Mainnet by using wallet proxy endpoint `/v2/ip_info`.

## 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`.
- Use new wallet proxy endpoint `/v2/ip_info` on Testnet, which includes Company ID Providers, as these are now removed from the `/v1/ip_info`.

## 1.6.2

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.3",
"version": "1.6.4",
"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,12 +259,7 @@ export async function getTransactions(
}

export async function getIdentityProviders(): Promise<IdentityProvider[]> {
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 proxyPath = '/v2/ip_info';
const response = await (await getWalletProxy()).get(proxyPath);
return response.data;
}
Expand Down

0 comments on commit eaaa1fb

Please sign in to comment.