Skip to content

Commit

Permalink
Sync try-catch opcodes (#1565)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luchuan authored Apr 15, 2020
1 parent 77cee24 commit 62c8c09
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/neo/SmartContract/ApplicationEngine.OpCodePrices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,14 @@ partial class ApplicationEngine
[OpCode.CALL] = 22000,
[OpCode.CALL_L] = 22000,
[OpCode.CALLA] = 22000,
[OpCode.THROW] = 30,
[OpCode.ABORT] = 30,
[OpCode.ASSERT] = 30,
[OpCode.THROW] = 22000,
[OpCode.TRY] = 100,
[OpCode.TRY_L] = 100,
[OpCode.ENDTRY] = 100,
[OpCode.ENDTRY_L] = 100,
[OpCode.ENDFINALLY] = 100,
[OpCode.RET] = 0,
[OpCode.SYSCALL] = 0,
[OpCode.DEPTH] = 60,
Expand Down
2 changes: 1 addition & 1 deletion src/neo/neo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<PackageReference Include="Microsoft.AspNetCore.WebSockets" Version="2.2.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="3.0.1" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="3.0.1" />
<PackageReference Include="Neo.VM" Version="3.0.0-preview2" />
<PackageReference Include="Neo.VM" Version="3.0.0-CI00218" />
</ItemGroup>

</Project>

0 comments on commit 62c8c09

Please sign in to comment.