File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 1.6.3
4
+
5
+ ### Fixed
6
+
7
+ - Use new wallet proxy endpoint ` /v2/ip_info ` which includes Company ID Providers, as these are now removed from the ` /v1/ip_info ` .
8
+
3
9
## 1.6.2
4
10
5
11
### Fixed
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @concordium/browser-wallet" ,
3
3
"private" : true ,
4
- "version" : " 1.6.2 " ,
4
+ "version" : " 1.6.3 " ,
5
5
"description" : " Browser extension wallet for the Concordium blockchain" ,
6
6
"author" : " Concordium Software" ,
7
7
"license" : " Apache-2.0" ,
Original file line number Diff line number Diff line change @@ -259,7 +259,12 @@ export async function getTransactions(
259
259
}
260
260
261
261
export async function getIdentityProviders ( ) : Promise < IdentityProvider [ ] > {
262
- const proxyPath = `/v1/ip_info` ;
262
+ const currentNetwork = await storedCurrentNetwork . get ( ) ;
263
+ if ( currentNetwork === undefined ) {
264
+ throw new Error ( 'Tried to access wallet proxy without a loaded network.' ) ;
265
+ }
266
+ // Use the new endpoint for Testnet only, this logic can be simplified once Company ID as been released on mainnet.
267
+ const proxyPath = currentNetwork . name === 'Concordium Testnet' ? '/v2/ip_info' : '/v1/ip_info' ;
263
268
const response = await ( await getWalletProxy ( ) ) . get ( proxyPath ) ;
264
269
return response . data ;
265
270
}
You can’t perform that action at this time.
0 commit comments