Skip to content

Commit cacacc0

Browse files
committed
fix: fix cell level in constructor
1 parent 36fa202 commit cacacc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TonLibDotNet/Cells/Cell.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class Cell
1010
public const int MaxRefs = 4;
1111

1212
public Cell(ReadOnlySpan<byte> content, bool isAugmented, ICollection<Cell>? refs = null)
13-
: this(false, 0, content, isAugmented, refs)
13+
: this(false, refs?.Max(x => x.Level) ?? 0, content, isAugmented, refs)
1414
{
1515
// Nothing.
1616
}

0 commit comments

Comments
 (0)