Skip to content

Commit 689bb00

Browse files
committed
Use ToLong
1 parent c6b1655 commit 689bb00

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Mimir.Worker/StateDocumentConverter/ArenaCpStateDocumentConverter.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 ArenaCpDocument(context.BlockIndex, context.Address, cp);
2424
}

Mimir.Worker/StateDocumentConverter/RaidCpStateDocumentConverter.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 RaidCpDocument(context.BlockIndex, context.Address, cp);
2424
}

0 commit comments

Comments
 (0)