Skip to content

Commit 6c1bfe7

Browse files
author
Cuong Pham
committed
f
1 parent 58aecef commit 6c1bfe7

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

StellarDotnetSdk.Tests/Responses/Operations/PaymentOperationResponseTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static void AssertPaymentOperationTestData(PaymentOperationResponse opera
5959
Assert.IsNotNull(transaction);
6060
Assert.AreEqual("5c2e4dad596941ef944d72741c8f8f1a4282f8f2f141e81d827f44bf365d626b", transaction.Hash);
6161
Assert.AreEqual(915744L, transaction.Ledger);
62-
Assert.AreEqual("2015-11-20T17:01:28Z", transaction.CreatedAt);
62+
Assert.AreEqual(new DateTimeOffset(2015, 11, 20, 17, 1, 28, TimeSpan.Zero), transaction.CreatedAt);
6363
Assert.AreEqual("3933090531512320", transaction.PagingToken);
6464
Assert.AreEqual("GCUB7JL4APK7LKJ6MZF7Q2JTLHAGNBIUA7XIXD5SQTG52GQ2DAT6XZMK", transaction.SourceAccount);
6565
Assert.AreEqual(2373051035426646L, transaction.SourceAccountSequence);

StellarDotnetSdk.Tests/Responses/TransactionDeserializerTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public void TestDeserializeFeeBump()
202202
Assert.AreEqual(1, transaction.InnerTx.Signatures.Count);
203203
Assert.AreEqual("FBQU", transaction.InnerTx.Signatures[0]);
204204
Assert.AreEqual("e98869bba8bce08c10b78406202127f3888c25454cd37b02600862452751f526", transaction.InnerTx.Hash);
205-
Assert.AreEqual("99", transaction.InnerTx.MaxFee);
205+
Assert.AreEqual(99L, transaction.InnerTx.MaxFee);
206206
}
207207

208208
[TestMethod]

StellarDotnetSdk.Tests/Responses/TransactionPageDeserializeTest.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.IO;
1+
using System;
2+
using System.IO;
23
using System.Text.Json;
34
using Microsoft.VisualStudio.TestTools.UnitTesting;
45
using StellarDotnetSdk.Converters;
@@ -29,7 +30,7 @@ public static void AssertTestData(Page<TransactionResponse> transactionsPage)
2930
Assert.AreEqual(true, record1.Successful);
3031
Assert.AreEqual("b9d0b2292c4e09e8eb22d036171491e87b8d2086bf8b265874c8d182cb9c9020", record1.Hash);
3132
Assert.AreEqual(185L, record1.Ledger);
32-
Assert.AreEqual("2025-08-14T17:38:24Z", record1.CreatedAt);
33+
Assert.AreEqual(new DateTimeOffset(2025, 8, 14, 17, 38, 24, TimeSpan.Zero), record1.CreatedAt);
3334
Assert.AreEqual("GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H", record1.SourceAccount);
3435
Assert.AreEqual(1L, record1.SourceAccountSequence);
3536
Assert.AreEqual("GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H", record1.FeeAccount);
@@ -50,7 +51,7 @@ public static void AssertTestData(Page<TransactionResponse> transactionsPage)
5051
Assert.AreEqual(true, record5.Successful);
5152
Assert.AreEqual("57075101b7272595f5ec1f1625e4be4c0cd9d774ae5f13bbd3295f1578420fbf", record5.Hash);
5253
Assert.AreEqual(223L, record5.Ledger);
53-
Assert.AreEqual("2025-08-14T17:41:34Z", record5.CreatedAt);
54+
Assert.AreEqual(new DateTimeOffset(2025, 8, 14, 17, 41, 34, TimeSpan.Zero), record5.CreatedAt);
5455
Assert.AreEqual("GAIH3ULLFQ4DGSECF2AR555KZ4KNDGEKN4AFI4SU2M7B43MGK3QJZNSR", record5.SourceAccount);
5556
Assert.AreEqual(794568949764L, record5.SourceAccountSequence);
5657
Assert.AreEqual("GAIH3ULLFQ4DGSECF2AR555KZ4KNDGEKN4AFI4SU2M7B43MGK3QJZNSR", record5.FeeAccount);

StellarDotnetSdk/Responses/TransactionResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,6 @@ public sealed class InnerTransaction
280280
/// The maximum fee of the inner transaction in stroops.
281281
/// </summary>
282282
[JsonPropertyName("max_fee")]
283-
public required string MaxFee { get; init; }
283+
public required long MaxFee { get; init; }
284284
}
285285
}

0 commit comments

Comments
 (0)