diff --git a/tonconnect-server/src/TonConnectServerV1.ts b/tonconnect-server/src/TonConnectServerV1.ts index 327300d..d4b8a7a 100644 --- a/tonconnect-server/src/TonConnectServerV1.ts +++ b/tonconnect-server/src/TonConnectServerV1.ts @@ -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 @@ -61,6 +61,10 @@ export class TonConnectServerV1 { return false; } + public async verifyTonOwnership(payload: TonOwnershipPayload, client_id: string) { + return TonConnectServerV1.verifyTonOwnership(payload, client_id); + } + public decodeResponse(base64: string): DecodedResponse { const response = Base64.decodeUrlSafeObj(base64); const authenticator = Base64.decodeBytes(response.authenticator);