Skip to content

Commit

Permalink
fix static domain
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhar-petukhov committed Oct 10, 2023
1 parent a749753 commit 7982911
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/api/tonconnect_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ func (h *Handler) TonConnectProof(ctx context.Context, request *oas.TonConnectPr
StateInit: request.Proof.StateInit.Value,
},
}
verified, pubKey, err := h.tonConnect.CheckProof(ctx, &proof, h.tonConnect.CheckPayload, tonconnect.StaticDomain("tonkeeper"))

verified, pubKey, err := h.tonConnect.CheckProof(ctx, &proof, h.tonConnect.CheckPayload, tonconnect.StaticDomain("tonkeeper.com"))
if err != nil || !verified {
return nil, toError(http.StatusBadRequest, fmt.Errorf("failed verify proof"))
}
Expand Down

0 comments on commit 7982911

Please sign in to comment.