From 6358c490909812ee9636b666c109121b410090f7 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 16 May 2025 00:12:17 +0800 Subject: [PATCH] :bug: Fix wallet infinite loop --- DysonNetwork.Sphere/Wallet/Wallet.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DysonNetwork.Sphere/Wallet/Wallet.cs b/DysonNetwork.Sphere/Wallet/Wallet.cs index 5d25972..e69d251 100644 --- a/DysonNetwork.Sphere/Wallet/Wallet.cs +++ b/DysonNetwork.Sphere/Wallet/Wallet.cs @@ -1,4 +1,5 @@ using System.ComponentModel.DataAnnotations; +using System.Text.Json.Serialization; namespace DysonNetwork.Sphere.Wallet; @@ -19,5 +20,5 @@ public class WalletPocket : ModelBase public decimal Amount { get; set; } public Guid WalletId { get; set; } - public Wallet Wallet { get; set; } = null!; + [JsonIgnore] public Wallet Wallet { get; set; } = null!; } \ No newline at end of file