Skip to content

Commit 2f1ee62

Browse files
committed
int -> long
1 parent 6d81b85 commit 2f1ee62

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Lib9cVersion>1.29.0-dev.fd558e739500c80e09fed936d1e5487016efb096</Lib9cVersion>
3+
<Lib9cVersion>1.30.0-dev.c4bd7f8a1650132222cb6170c35660cd86c93a12</Lib9cVersion>
44
<LibplanetVersion>5.5.0</LibplanetVersion>
55
</PropertyGroup>
66
</Project>

Mimir.MongoDB/Bson/AdventureCpDocument.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ namespace Mimir.MongoDB.Bson;
99
public record AdventureCpDocument(
1010
[property: BsonIgnore, JsonIgnore, GraphQLIgnore] long StoredBlockIndex,
1111
[property: BsonIgnore, JsonIgnore, GraphQLIgnore] Address Address,
12-
int Cp
13-
) : MimirBsonDocument(Address.ToHex(), new DocumentMetadata(1, StoredBlockIndex)), ICpDocument;
12+
long Cp
13+
) : MimirBsonDocument(Address.ToHex(), new DocumentMetadata(2, StoredBlockIndex)), ICpDocument;

Mimir.MongoDB/Bson/ArenaCpDocument.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ namespace Mimir.MongoDB.Bson;
99
public record ArenaCpDocument(
1010
[property: BsonIgnore, JsonIgnore, GraphQLIgnore] long StoredBlockIndex,
1111
[property: BsonIgnore, JsonIgnore, GraphQLIgnore] Address Address,
12-
int Cp
13-
) : MimirBsonDocument(Address.ToHex(), new DocumentMetadata(1, StoredBlockIndex)), ICpDocument;
12+
long Cp
13+
) : MimirBsonDocument(Address.ToHex(), new DocumentMetadata(2, StoredBlockIndex)), ICpDocument;

Mimir.MongoDB/Bson/ICpDocument.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ namespace Mimir.MongoDB.Bson;
44

55
public interface ICpDocument
66
{
7-
int Cp { get; }
7+
long Cp { get; }
88
}

Mimir.MongoDB/Bson/RaidCpDocument.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ namespace Mimir.MongoDB.Bson;
99
public record RaidCpDocument(
1010
[property: BsonIgnore, JsonIgnore, GraphQLIgnore] long StoredBlockIndex,
1111
[property: BsonIgnore, JsonIgnore, GraphQLIgnore] Address Address,
12-
int Cp
13-
) : MimirBsonDocument(Address.ToHex(), new DocumentMetadata(1, StoredBlockIndex)), ICpDocument;
12+
long Cp
13+
) : MimirBsonDocument(Address.ToHex(), new DocumentMetadata(2, StoredBlockIndex)), ICpDocument;

Mimir.Worker/StateDocumentConverter/AdventureCpStateDocumentConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public MimirBsonDocument ConvertToDocument(AddressStatePair context)
1818
$"{nameof(context.RawState)} Invalid state type. Expected {nameof(List)}, got {context.RawState.GetType().Name}."
1919
);
2020

21-
var cp = list[0].ToInteger();
21+
var cp = list[0].ToLong();
2222

2323
return new AdventureCpDocument(context.BlockIndex, context.Address, cp);
2424
}

0 commit comments

Comments
 (0)