Skip to content

Commit ea03316

Browse files
authored
Fix ABORTMSG and ASSERTMSG summary (#510)
1 parent aa4f69d commit ea03316

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Neo.VM/OpCode.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public enum OpCode : byte
276276
/// </summary>
277277
ABORT = 0x38,
278278
/// <summary>
279-
/// Pop the top value of the stack, if it false, then exit vm execution and set vm state to FAULT.
279+
/// Pop the top value of the stack. If it's false, exit vm execution and set vm state to FAULT.
280280
/// </summary>
281281
ASSERT = 0x39,
282282
/// <summary>
@@ -890,11 +890,13 @@ public enum OpCode : byte
890890
#region Extensions
891891

892892
/// <summary>
893-
/// Turns the vm state to FAULT immediately, and cannot be caught. Includes a reason
893+
/// Pops the top stack item. Then, turns the vm state to FAULT immediately, and cannot be caught. The top stack
894+
/// value is used as reason.
894895
/// </summary>
895896
ABORTMSG = 0xE0,
896897
/// <summary>
897-
/// Pop the top value of the stack, if it false, then exit vm execution and set vm state to FAULT. Includes a reason
898+
/// Pops the top two stack items. If the second-to-top stack value is false, exits the vm execution and sets the
899+
/// vm state to FAULT. In this case, the top stack value is used as reason for the exit. Otherwise, it is ignored.
898900
/// </summary>
899901
ASSERTMSG = 0xE1
900902

0 commit comments

Comments
 (0)