Skip to content
Open
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: 5 additions & 1 deletion tonconnect-server/src/TonConnectServerV1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class TonConnectServerV1 {
};
}

public async verifyTonOwnership(payload: TonOwnershipPayload, client_id: string) {
public static async verifyTonOwnership(payload: TonOwnershipPayload, client_id: string) {
const TonWallet = TonWeb.Wallets.all[payload.wallet_version];
if (TonWallet) {
// Construct wallet contract
Expand Down Expand Up @@ -61,6 +61,10 @@ export class TonConnectServerV1 {
return false;
}

public async verifyTonOwnership(payload: TonOwnershipPayload, client_id: string) {
return TonConnectServerV1.verifyTonOwnership(payload, client_id);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dff

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cc

}

public decodeResponse(base64: string): DecodedResponse {
const response = Base64.decodeUrlSafeObj(base64);
const authenticator = Base64.decodeBytes(response.authenticator);
Expand Down