Skip to content

Commit

Permalink
Fixed some opcode price (#2020)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiao-Jin authored Nov 12, 2020
1 parent 5d5bd02 commit 188b131
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/neo/SmartContract/ApplicationEngine.OpCodePrices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ partial class ApplicationEngine
[OpCode.REVERSE4] = 60,
[OpCode.REVERSEN] = 400,
[OpCode.INITSSLOT] = 400,
[OpCode.INITSLOT] = 800,
[OpCode.INITSLOT] = 1600,
[OpCode.LDSFLD0] = 60,
[OpCode.LDSFLD1] = 60,
[OpCode.LDSFLD2] = 60,
Expand Down Expand Up @@ -143,8 +143,8 @@ partial class ApplicationEngine
[OpCode.AND] = 200,
[OpCode.OR] = 200,
[OpCode.XOR] = 200,
[OpCode.EQUAL] = 200,
[OpCode.NOTEQUAL] = 200,
[OpCode.EQUAL] = 1000,
[OpCode.NOTEQUAL] = 1000,
[OpCode.SIGN] = 100,
[OpCode.ABS] = 100,
[OpCode.NEGATE] = 100,
Expand All @@ -170,8 +170,8 @@ partial class ApplicationEngine
[OpCode.MIN] = 200,
[OpCode.MAX] = 200,
[OpCode.WITHIN] = 200,
[OpCode.PACK] = 7000,
[OpCode.UNPACK] = 7000,
[OpCode.PACK] = 15000,
[OpCode.UNPACK] = 15000,
[OpCode.NEWARRAY0] = 400,
[OpCode.NEWARRAY] = 15000,
[OpCode.NEWARRAY_T] = 15000,
Expand All @@ -181,11 +181,11 @@ partial class ApplicationEngine
[OpCode.SIZE] = 150,
[OpCode.HASKEY] = 270000,
[OpCode.KEYS] = 500,
[OpCode.VALUES] = 7000,
[OpCode.VALUES] = 270000,
[OpCode.PICKITEM] = 270000,
[OpCode.APPEND] = 15000,
[OpCode.APPEND] = 270000,
[OpCode.SETITEM] = 270000,
[OpCode.REVERSEITEMS] = 500,
[OpCode.REVERSEITEMS] = 270000,
[OpCode.REMOVE] = 500,
[OpCode.CLEARITEMS] = 400,
[OpCode.ISNULL] = 60,
Expand Down

0 comments on commit 188b131

Please sign in to comment.