Skip to content

Commit

Permalink
Check if 'tdex_daemon.v2.WalletService' when calling Reflection
Browse files Browse the repository at this point in the history
  • Loading branch information
Janaka-Steph committed Sep 13, 2023
1 parent e2a4bdf commit 7d25f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const getProtoVersion = async (providerEndpoint: string, proto: string):
const data = await res.json();
const isVersion2 = data.result.listServicesResponse.service
.map((s: any) => s.name)
.includes('tdex.v2.WalletService');
.includes('tdex_daemon.v2.WalletService');
return isVersion2 ? 'v2' : 'v1';
} catch (err) {
return 'v1';
Expand Down

0 comments on commit 7d25f27

Please sign in to comment.