Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET 9 #3576

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
1 change: 1 addition & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
dotnet_diagnostic.CA2265.severity = none
cschuchardt88 marked this conversation as resolved.
Show resolved Hide resolved

# XML project files
[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,projitems,shproj}]
Expand Down
4 changes: 2 additions & 2 deletions src/Neo.VM/ScriptBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ public ScriptBuilder EmitPush(bool value)
/// <returns>A reference to this instance after the emit operation has completed.</returns>
public ScriptBuilder EmitPush(ReadOnlySpan<byte> data)
{
ReadOnlySpan<byte> nullData = null;
if (data == nullData)
if (data == null)
throw new ArgumentNullException(nameof(data));

if (data.Length < 0x100)
{
Emit(OpCode.PUSHDATA1);
Expand Down
4 changes: 1 addition & 3 deletions src/Plugins/TokensTracker/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
using System;
using System.Collections.Generic;
using System.Numerics;
using static System.Runtime.InteropServices.JavaScript.JSType;

namespace Neo.Plugins
{
Expand All @@ -29,8 +28,7 @@ public static bool NotNull(this StackItem item)

public static string ToBase64(this ReadOnlySpan<byte> item)
{
ReadOnlySpan<byte> nullData = null;
return item == nullData ? System.String.Empty : Convert.ToBase64String(item);
return item == null ? String.Empty : Convert.ToBase64String(item);
}

public static int GetVarSize(this ByteString item)
Expand Down
Loading