Skip to content

Commit

Permalink
@shagron review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cschuchardt88 committed Sep 1, 2024
1 parent 58f46ea commit 3e5a0dd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 27 deletions.
8 changes: 1 addition & 7 deletions src/Neo/Network/P2P/Payloads/Conditions/OrCondition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,7 @@ public class OrCondition : WitnessCondition
/// </summary>
public WitnessCondition[] Expressions;

public override int Size
{
get
{
return base.Size + Expressions.GetVarSize();
}
}
public override int Size => base.Size + Expressions.GetVarSize();

public override WitnessConditionType Type => WitnessConditionType.Or;

Expand Down
23 changes: 3 additions & 20 deletions tests/Neo.UnitTests/IO/UT_IOHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,26 +110,9 @@ public void TestNullableArray()
[TestMethod]
public void TestAsSerializable()
{
byte[] caseArray = [0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00];
byte[] caseArray = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00];
ISerializable result = caseArray.AsSerializable<UInt160>();
Assert.AreEqual(UInt160.Zero, result);
}
Expand Down

0 comments on commit 3e5a0dd

Please sign in to comment.