Skip to content

Commit

Permalink
3.5.0 (#2832)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikzhang authored Dec 6, 2022
1 parent 0172d6b commit f88d4f8
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<PropertyGroup>
<Copyright>2015-2022 The Neo Project</Copyright>
<VersionPrefix>3.4.0</VersionPrefix>
<VersionPrefix>3.5.0</VersionPrefix>
<Authors>The Neo Project</Authors>
<TargetFramework>net6.0</TargetFramework>
<PackageProjectUrl>https://github.com/neo-project/neo</PackageProjectUrl>
Expand Down
2 changes: 1 addition & 1 deletion src/Neo/Neo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageReference Include="Akka" Version="1.4.46" />
<PackageReference Include="BouncyCastle.NetCore" Version="1.9.0" />
<PackageReference Include="K4os.Compression.LZ4" Version="1.2.16" />
<PackageReference Include="Neo.VM" Version="3.4.0" />
<PackageReference Include="Neo.VM" Version="3.5.0" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/Neo/SmartContract/ApplicationEngine.OpCodePrices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ partial class ApplicationEngine
[OpCode.PUSHINT64] = 1 << 0,
[OpCode.PUSHINT128] = 1 << 2,
[OpCode.PUSHINT256] = 1 << 2,
[OpCode.PUSHT] = 1 << 0,
[OpCode.PUSHF] = 1 << 0,
[OpCode.PUSHA] = 1 << 2,
[OpCode.PUSHNULL] = 1 << 0,
[OpCode.PUSHDATA1] = 1 << 3,
Expand Down
6 changes: 3 additions & 3 deletions tests/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" />
<PackageReference Include="FluentAssertions" Version="6.8.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
<PackageReference Include="coverlet.collector" Version="3.2.0" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions tests/Neo.UnitTests/Neo.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Akka.TestKit" Version="1.4.40" />
<PackageReference Include="Akka.TestKit.Xunit2" Version="1.4.40" />
<PackageReference Include="Akka.TestKit" Version="1.4.46" />
<PackageReference Include="Akka.TestKit.Xunit2" Version="1.4.46" />
<PackageReference Include="Moq" Version="4.18.2" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion tests/Neo.UnitTests/SmartContract/Native/UT_StdLib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public void Json_Serialize()
Assert.IsTrue(engine.ResultStack.Pop<ByteString>().GetString() == "{\"key\":\"value\"}");
Assert.IsTrue(engine.ResultStack.Pop<ByteString>().GetString() == "null");
Assert.IsTrue(engine.ResultStack.Pop<ByteString>().GetString() == "\"test\"");
Assert.IsTrue(engine.ResultStack.Pop<ByteString>().GetString() == "1");
Assert.IsTrue(engine.ResultStack.Pop<ByteString>().GetString() == "true");
Assert.IsTrue(engine.ResultStack.Pop<ByteString>().GetString() == "5");
}

Expand Down
8 changes: 4 additions & 4 deletions tests/Neo.UnitTests/VM/UT_Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void TestEmitAppCall3()
ScriptBuilder sb = new ScriptBuilder();
sb.EmitDynamicCall(UInt160.Zero, "AAAAA", true);
byte[] tempArray = new byte[38];
tempArray[0] = (byte)OpCode.PUSH1;
tempArray[0] = (byte)OpCode.PUSHT;
tempArray[1] = (byte)OpCode.PUSH1;//arg.Length
tempArray[2] = (byte)OpCode.PACK;
tempArray[3] = (byte)OpCode.PUSH15;//(byte)CallFlags.All;
Expand Down Expand Up @@ -344,7 +344,7 @@ private void TestEmitPush2Boolean()
ScriptBuilder sb = new ScriptBuilder();
sb.EmitPush(new ContractParameter(ContractParameterType.Boolean));
byte[] tempArray = new byte[1];
tempArray[0] = (byte)OpCode.PUSH0;
tempArray[0] = (byte)OpCode.PUSHF;
CollectionAssert.AreEqual(tempArray, sb.ToArray());
}

Expand Down Expand Up @@ -531,7 +531,7 @@ private void TestEmitPush3Bool()
ScriptBuilder sb = new ScriptBuilder();
sb.EmitPush(true);
byte[] tempArray = new byte[1];
tempArray[0] = (byte)OpCode.PUSH1;
tempArray[0] = (byte)OpCode.PUSHT;
CollectionAssert.AreEqual(tempArray, sb.ToArray());
}

Expand All @@ -541,7 +541,7 @@ public void TestEmitSysCall()
ScriptBuilder sb = new ScriptBuilder();
sb.EmitSysCall(0, true);
byte[] tempArray = new byte[6];
tempArray[0] = (byte)OpCode.PUSH1;
tempArray[0] = (byte)OpCode.PUSHT;
tempArray[1] = (byte)OpCode.SYSCALL;
tempArray[2] = 0x00;
tempArray[3] = 0x00;
Expand Down

0 comments on commit f88d4f8

Please sign in to comment.