From 5cf3cf70e8f34f80cbaa29cb56ab175511517ce1 Mon Sep 17 00:00:00 2001 From: gamer147 Date: Tue, 9 Jun 2026 15:05:59 -0400 Subject: [PATCH] feat(item-purchase): tag purchase tx as ItemPurchase for acquire history Co-Authored-By: Claude Sonnet 4.6 --- SVSim.EmulatedEntrypoint/Controllers/ItemPurchaseController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SVSim.EmulatedEntrypoint/Controllers/ItemPurchaseController.cs b/SVSim.EmulatedEntrypoint/Controllers/ItemPurchaseController.cs index 5d2fe59..f39a5fc 100644 --- a/SVSim.EmulatedEntrypoint/Controllers/ItemPurchaseController.cs +++ b/SVSim.EmulatedEntrypoint/Controllers/ItemPurchaseController.cs @@ -114,7 +114,7 @@ public class ItemPurchaseController : SVSimController if (rest <= 0) return BadRequest(new { error = "sold_out" }); - await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted); + await using var tx = await _inv.BeginAsync(viewerId, HttpContext.RequestAborted, cfg => cfg.Source = GrantSource.ItemPurchase); // Debit the require side via the tx. var debit = await tx.TryDebitAsync(