From f729ef2945fb39b16a30c4b73db1a107cd6f29ed Mon Sep 17 00:00:00 2001 From: Harry Pierson Date: Tue, 24 Nov 2020 14:19:44 -0800 Subject: [PATCH 1/3] Make KeyBuilder public so neo-debugger can use it --- src/neo/SmartContract/Native/KeyBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neo/SmartContract/Native/KeyBuilder.cs b/src/neo/SmartContract/Native/KeyBuilder.cs index 0d6c80970e..0f5970b241 100644 --- a/src/neo/SmartContract/Native/KeyBuilder.cs +++ b/src/neo/SmartContract/Native/KeyBuilder.cs @@ -5,7 +5,7 @@ namespace Neo.SmartContract.Native { - internal class KeyBuilder + public class KeyBuilder { private readonly int id; private readonly MemoryStream stream = new MemoryStream(); From f44ea17df1e0ef1bb2c2a77c4d7e819862311d37 Mon Sep 17 00:00:00 2001 From: Shargon Date: Wed, 25 Nov 2020 11:34:22 +0100 Subject: [PATCH 2/3] Move namespace --- src/neo/SmartContract/{Native => }/KeyBuilder.cs | 2 +- .../neo.UnitTests/SmartContract/{Native => }/UT_KeyBuilder.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename src/neo/SmartContract/{Native => }/KeyBuilder.cs (98%) rename tests/neo.UnitTests/SmartContract/{Native => }/UT_KeyBuilder.cs (93%) diff --git a/src/neo/SmartContract/Native/KeyBuilder.cs b/src/neo/SmartContract/KeyBuilder.cs similarity index 98% rename from src/neo/SmartContract/Native/KeyBuilder.cs rename to src/neo/SmartContract/KeyBuilder.cs index 0f5970b241..c725da370b 100644 --- a/src/neo/SmartContract/Native/KeyBuilder.cs +++ b/src/neo/SmartContract/KeyBuilder.cs @@ -3,7 +3,7 @@ using System; using System.IO; -namespace Neo.SmartContract.Native +namespace Neo.SmartContract { public class KeyBuilder { diff --git a/tests/neo.UnitTests/SmartContract/Native/UT_KeyBuilder.cs b/tests/neo.UnitTests/SmartContract/UT_KeyBuilder.cs similarity index 93% rename from tests/neo.UnitTests/SmartContract/Native/UT_KeyBuilder.cs rename to tests/neo.UnitTests/SmartContract/UT_KeyBuilder.cs index 9db398f0cb..39c2018f25 100644 --- a/tests/neo.UnitTests/SmartContract/Native/UT_KeyBuilder.cs +++ b/tests/neo.UnitTests/SmartContract/UT_KeyBuilder.cs @@ -1,7 +1,7 @@ using Microsoft.VisualStudio.TestTools.UnitTesting; -using Neo.SmartContract.Native; +using Neo.SmartContract; -namespace Neo.UnitTests.SmartContract.Native +namespace Neo.UnitTests.SmartContract { [TestClass] public class UT_KeyBuilder From 6714e9970d11971751d971066d3b0f17d5590ba1 Mon Sep 17 00:00:00 2001 From: Shargon Date: Wed, 25 Nov 2020 11:35:46 +0100 Subject: [PATCH 3/3] Clean using --- tests/neo.UnitTests/SmartContract/Native/Tokens/UT_NeoToken.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/neo.UnitTests/SmartContract/Native/Tokens/UT_NeoToken.cs b/tests/neo.UnitTests/SmartContract/Native/Tokens/UT_NeoToken.cs index 4010acf625..eca3d9faa7 100644 --- a/tests/neo.UnitTests/SmartContract/Native/Tokens/UT_NeoToken.cs +++ b/tests/neo.UnitTests/SmartContract/Native/Tokens/UT_NeoToken.cs @@ -1,6 +1,5 @@ using FluentAssertions; using Microsoft.VisualStudio.TestTools.UnitTesting; -using Neo.Consensus; using Neo.Cryptography; using Neo.Cryptography.ECC; using Neo.IO; @@ -14,7 +13,6 @@ using Neo.VM; using Neo.Wallets; using System; -using System.Collections.Generic; using System.Linq; using System.Numerics; using static Neo.SmartContract.Native.Tokens.NeoToken;