From 62c8c091de89d02a89408efcb02726d0cbe8d400 Mon Sep 17 00:00:00 2001 From: Luchuan Date: Wed, 15 Apr 2020 17:57:37 +0800 Subject: [PATCH] Sync try-catch opcodes (#1565) --- src/neo/SmartContract/ApplicationEngine.OpCodePrices.cs | 7 ++++++- src/neo/neo.csproj | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/neo/SmartContract/ApplicationEngine.OpCodePrices.cs b/src/neo/SmartContract/ApplicationEngine.OpCodePrices.cs index 4bfa5775bf..41bd1f7a29 100644 --- a/src/neo/SmartContract/ApplicationEngine.OpCodePrices.cs +++ b/src/neo/SmartContract/ApplicationEngine.OpCodePrices.cs @@ -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, diff --git a/src/neo/neo.csproj b/src/neo/neo.csproj index c7e38117c3..df025e9ab3 100644 --- a/src/neo/neo.csproj +++ b/src/neo/neo.csproj @@ -27,7 +27,7 @@ - +