Skip to content

Commit

Permalink
Change boot api
Browse files Browse the repository at this point in the history
  • Loading branch information
KuznetsovNikita committed Jan 12, 2024
1 parent 178ea59 commit 46a6b58
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/core/src/tonkeeperApi/tonendpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Tonendpoint {
}: Partial<BootParams>,
{ fetchApi = defaultFetch, basePath = defaultTonendpoint }: BootOptions
) {
this.params = { lang, build: '3.5.0', network, platform, countryCode };
this.params = { lang, build, network, platform, countryCode };
this.fetchApi = fetchApi;
this.basePath = basePath;
}
Expand All @@ -99,9 +99,12 @@ export class Tonendpoint {
};

boot = async (): Promise<TonendpointConfig> => {
const response = await this.fetchApi(`${this.basePath}/keys?${this.toSearchParams()}`, {
method: 'GET'
});
const response = await this.fetchApi(
`https://boot.tonkeeper.com/keys?${this.toSearchParams()}`,
{
method: 'GET'
}
);

return response.json();
};
Expand Down

0 comments on commit 46a6b58

Please sign in to comment.