Skip to content

Commit

Permalink
Update JsonSerializer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon authored Jul 9, 2021
1 parent 0a74dc3 commit 76700d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/neo/SmartContract/JsonSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static byte[] SerializeToByteArray(StackItem item, uint maxSize)
if (ms.Position + writer.BytesPending > maxSize) throw new InvalidOperationException();
}
writer.Flush();
if (ms.Position + writer.BytesPending > maxSize) throw new InvalidOperationException();
if (ms.Position > maxSize) throw new InvalidOperationException();
return ms.ToArray();
}

Expand Down

0 comments on commit 76700d9

Please sign in to comment.