Skip to content

purchaseTickets() returns fake success without persisting anything #757

@Otaiki1

Description

@Otaiki1

Problem

RafflesService.purchaseTickets() returns synthetic confirmation data (line 164) while the blockchain submission and persistence logic is marked TODO (raffles.service.ts:163,175). Users receive a success response but no ticket is recorded — purchases are silently lost and the draw path has no real data to operate on.

Fix

Block the endpoint behind a feature flag until the blockchain integration is implemented and integration-tested end-to-end. Return a 501 in the interim rather than a false 200.

File: backend/src/api/rest/raffles/raffles.service.ts:149-179

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions