Skip to content

Commit 6fd5705

Browse files
author
Cuong Pham
committed
f
1 parent 75dec74 commit 6fd5705

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

StellarDotnetSdk.Tests/Responses/ClaimableBalanceDeserializerTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.IO;
23
using System.Text.Json;
34
using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -44,7 +45,7 @@ public static void AssertTestData(ClaimableBalanceResponse claimableBalance)
4445
Assert.AreEqual("16.6666667", claimableBalance.Amount);
4546
Assert.AreEqual("GDERZDEWIYBPWFQLG7GV5BWC4BXSD5KCQ734D42P72IG5COAYIFB2DTB", claimableBalance.Sponsor);
4647
Assert.AreEqual(65909, claimableBalance.LastModifiedLedger);
47-
Assert.AreEqual("2025-08-18T13:02:39Z", claimableBalance.LastModifiedTime);
48+
Assert.AreEqual(new DateTimeOffset(2025, 8, 18, 13, 02, 39, TimeSpan.Zero), claimableBalance.LastModifiedTime);
4849
Assert.AreEqual("65909-000000009832889118c5fcf2cfb3c082e079520c516300b5276b839cb934cf88ebc9244a",
4950
claimableBalance.PagingToken);
5051

StellarDotnetSdk/Responses/ClaimableBalanceResponse.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Text.Json.Serialization;
23
using StellarDotnetSdk.Responses.Operations;
34

@@ -49,10 +50,10 @@ public sealed class ClaimableBalanceResponse : Response
4950
public required long LastModifiedLedger { get; init; }
5051

5152
/// <summary>
52-
/// An ISO 8601 formatted string of when this claimable balance was last modified.
53+
/// The time this claimable balance was last modified.
5354
/// </summary>
5455
[JsonPropertyName("last_modified_time")]
55-
public required string LastModifiedTime { get; init; }
56+
public required DateTimeOffset LastModifiedTime { get; init; }
5657

5758
/// <summary>
5859
/// The list of accounts that can claim this balance and the conditions under which they can do so.

0 commit comments

Comments
 (0)