Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Revert the restrictions of NUMEQUAL and NUMNOTEQUAL #126

Merged
merged 1 commit into from
Apr 13, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/neo-vm/ExecutionEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -738,19 +738,15 @@ private bool ExecuteInstruction()
case OpCode.NUMEQUAL:
{
BigInteger x2 = context.EvaluationStack.Pop().GetBigInteger();
if (!CheckBigInteger(x2)) return false;
BigInteger x1 = context.EvaluationStack.Pop().GetBigInteger();
if (!CheckBigInteger(x1)) return false;
context.EvaluationStack.Push(x1 == x2);
CheckStackSize(true, -1);
break;
}
case OpCode.NUMNOTEQUAL:
{
BigInteger x2 = context.EvaluationStack.Pop().GetBigInteger();
if (!CheckBigInteger(x2)) return false;
BigInteger x1 = context.EvaluationStack.Pop().GetBigInteger();
if (!CheckBigInteger(x1)) return false;
context.EvaluationStack.Push(x1 != x2);
CheckStackSize(true, -1);
break;
Expand Down