Skip to content

Commit

Permalink
Fix Seq making it long
Browse files Browse the repository at this point in the history
  • Loading branch information
drasticactions committed Nov 5, 2024
1 parent b3a7f0b commit 71adbee
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/FishyFlip/Models/FrameCommit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public class FrameCommit
public FrameCommit(CBORObject obj, ILogger? logger = default)
{
this.Ops = obj["ops"]?.Values.Select(n => new Ops(n)).ToArray();
this.Seq = obj["seq"].AsInt32();
this.Seq = obj["seq"].ToObject<long>();
this.Blocks = obj["blocks"]?.GetByteString();
#pragma warning disable CS0618
this.Prev = obj["prev"]?.ToATCid(logger);
Expand All @@ -40,7 +40,7 @@ public FrameCommit(CBORObject obj, ILogger? logger = default)
/// <summary>
/// Gets the sequence.
/// </summary>
public int Seq { get; }
public long Seq { get; }

/// <summary>
/// Gets the handle.
Expand Down
4 changes: 2 additions & 2 deletions src/FishyFlip/Models/FrameHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class FrameHandle
public FrameHandle(CBORObject obj)
{
this.Did = obj["did"] is not null ? ATDid.Create(obj["did"].AsString()) : null;
this.Seq = obj["seq"].AsInt32();
this.Seq = obj["seq"].ToObject<long>();
this.Handle = obj["handle"]?.AsString();
this.Time = obj["time"] is not null ? obj["time"].ToDateTime() : null;
}
Expand All @@ -29,7 +29,7 @@ public FrameHandle(CBORObject obj)
/// <summary>
/// Gets the sequence number of the frame handle.
/// </summary>
public int Seq { get; }
public long Seq { get; }

/// <summary>
/// Gets the handle string of the frame handle.
Expand Down
4 changes: 2 additions & 2 deletions src/FishyFlip/Models/FrameMigrate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class FrameMigrate
public FrameMigrate(CBORObject obj)
{
this.Did = obj["did"] is not null ? ATDid.Create(obj["did"].AsString()) : null;
this.Seq = obj["seq"].AsInt32();
this.Seq = obj["seq"].ToObject<long>();
this.MigrateTo = obj["migrateTo"]?.AsString();
this.Time = obj["time"] is not null ? obj["time"].ToDateTime() : null;
}
Expand All @@ -29,7 +29,7 @@ public FrameMigrate(CBORObject obj)
/// <summary>
/// Gets the sequence number of the frame migration.
/// </summary>
public int Seq { get; }
public long Seq { get; }

/// <summary>
/// Gets the migration destination of the frame.
Expand Down
4 changes: 2 additions & 2 deletions src/FishyFlip/Models/FrameTombstone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class FrameTombstone
public FrameTombstone(CBORObject obj)
{
this.Did = obj["did"] is not null ? ATDid.Create(obj["did"].AsString()) : null;
this.Seq = obj["seq"].AsInt32();
this.Seq = obj["seq"].ToObject<long>();
this.Time = obj["time"] is not null ? obj["time"].ToDateTime() : null;
}

Expand All @@ -28,7 +28,7 @@ public FrameTombstone(CBORObject obj)
/// <summary>
/// Gets the sequence number of the frame.
/// </summary>
public int Seq { get; }
public long Seq { get; }

/// <summary>
/// Gets the timestamp of the tombstone.
Expand Down

0 comments on commit 71adbee

Please sign in to comment.